#include <string.h>

#include "extern.h"

chkcug()
	{
		char chkid[9];


		fpw = fopen(CUG_USER,"r");
		if ( fpw == NULL )	return(0);

		while(1)
			{ if ( fgets(fbuff,255,fpw) == NULL )
					{ fclose(fpw); break; }
			  idcpy(chkid,fbuff);
			  if ( strcmp(hiscall,chkid) ) continue;
			  fclose(fpw);
			  strcpy(nowjle,"CUG     "); strcpy(jlepmt,"CUG ->");
			  return(1);
			}

		return(0);
	}
