/* DIR COMMAND SIMULATION */
#include #include
void main( int argc, char *argv[] ) { struct ffblk ffblk; int done; if( argc != 2 ) { printf("\nUSAGE : DIR "); exit(1); }
printf("Directory listing of %s\n",argv[1]); done = findfirst(argv[1],&ffblk,0);
while (!done) { printf(" %s\n", ffblk.ff_name); done = findnext(&ffblk); } printf("\n%d no of files present."); }
|
| Author: Lenin 10 Jun 2008 | Member Level: Diamond Points : 2 |
hi giri are you a computer student , i know only small programs in C.But i know C is a SEA.Am i right ? I remember the days when i used to mugup the codings for Lab exams.still c fear is there. Also still C is in flying colours
|