/* TURBO-C */ /* dando come argomento il nome di un file calcola la sua grandezza /* /* by Luca Zecchinato Agosto 1996 */ #include #include #include main (argc,argv) int argc; char *argv[]; { char nomefile[50]; char stringa[30]; struct stat statbuf; clrscr(); if (argc==1) exit(0); strcpy(nomefile, argv[1]); stat(nomefile,&statbuf); gotoxy(2,3); printf("%i byte\n",statbuf.st_size); strcpy(stringa, ctime(&statbuf.st_mtime)); printf(" %s", stringa); printf(" By LZ\n"); }