#ifdef	ournix
#include "ournix.h"
#endif
char sccsID[] = "@(#) V1.0 who.c Copyright Julian H. Stacey 87-03-11\n" ;

#include <stdio.h>

char	**ARGV ;
#define	UTMP		"/etc/utmp" 		/* to store who	is logged in. */

main(argc,argv)
	int argc; char **argv ;
	{
	FILE *utmp;
	int c ;

	ARGV = argv ;
#ifdef	VSL	/* { */
#include	"../../include/vsl.h"
#endif		/* } */
	if ((utmp = fopen(UTMP,"r" ) ) == 0) 
		{
		fprintf(stderr,"%s: Cant open %s\n",*++argv,UTMP);
		perror(*argv);
		exit(1);
		}
	while (	( c = getc(utmp) ) != EOF ) putchar( c & 0x7f) ;
	(void) fclose(utmp);
	exit(0);
	}
