home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Super PC 34
/
Super PC 34 (Shareware).iso
/
spc
/
UTIL
/
DJGPP2
/
V2
/
DJTST200.ZIP
/
tests
/
libc
/
posix
/
sys
/
stat
/
stat.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-04-23
|
345 b
|
21 lines
#include <stdio.h>
#include <time.h>
#include <sys/stat.h>
void
djstat(char *f)
{
struct stat s;
stat(f, &s);
printf("%d.%d %10d %24.24s %s\n", s.st_dev, s.st_ino, s.st_size, asctime(localtime(&s.st_mtime)), f);
}
int
main(int argc, char **argv)
{
int i;
for (i=1; i<argc; i++)
djstat(argv[i]);
return 0;
}