git.samba.org
/
tridge
/
junkcode.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
nicer output
[tridge/junkcode.git]
/
grp.c
1
#include <stdio.h>
2
#include <sys/types.h>
3
#include <sys/stat.h>
4
5
struct stat buf;
6
7
int group(file)
8
char *file;
9
{
10
buf.st_mode = 0;
11
stat(file,&buf);
12
return(buf.st_gid);
13
}
14
15
main(argc,argv)
16
int argc;
17
char *argv[];
18
{
19
if (argc>1) printf("%d\n",group(argv[1]));
20
return(0);
21
}
22