home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
utility
/
fn32_13.zip
/
TESTSTAT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-09-16
|
645b
|
33 lines
/* teststat.c
** compile: cl -AC teststat.c xstat.obj
** or cl -AL teststat.c xstat.obj
**
** command args are files or directories without wildcards
*/
#include "xstat.h"
extern char *ctime();
main(int argc, char **argv)
{
_XSTAT *stats;
int i,j;
for(i = 1; i < argc; ++i)
{
if(stats = xxstat(argv[i]))
{
printf("%s %s", argv[i], ctime(&stats->st_atime));
for(j = 0; j < stats->st_chunkcnt; ++j)
printf(" %u block=%lu numblks=%u\n",
j, stats->st_chunklist[j].block, stats->st_chunklist[j].cnt);
xstat_free(stats);
}
else
{
printf("%s Can't stat.\n", argv[i]);
}
}
}