SCCS-vsn: lib/libc/gen/getgrent.c 5.3
#if defined(LIBC_SCCS) && !defined(lint)
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)getgrent.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)getgrent.c 5.3 (Berkeley) %G%";
#endif LIBC_SCCS and not lint
#include <stdio.h>
#endif LIBC_SCCS and not lint
#include <stdio.h>
-static char GROUP[] = "/etc/group";
+static char *GROUP = "/etc/group";
static FILE *grf = NULL;
static char line[BUFSIZ+1];
static struct group group;
static FILE *grf = NULL;
static char line[BUFSIZ+1];
static struct group group;
*q = NULL;
return( &group );
}
*q = NULL;
return( &group );
}
+
+setgrfile(file)
+ char *file;
+{
+ GROUP = file;
+}