Files
Arquivotheca.SunOS-4.1.4/usr.etc/suninstall/libmenu/ckf_empty.c
seta75D ff309bfe1c Init
2021-10-11 18:37:13 -03:00

38 lines
630 B
C

#ifndef lint
static char sccsid[] = "@(#)ckf_empty.c 1.1 94/10/31";
#endif
/*
* Name: ckf_empty.c
*
* Description: Determine if a field is empty. If the field is
* empty, then zero is returned. Otherwise, one is returned.
*
* Call syntax: ret_code = ckf_empty(arg_p, field_p);
*
* Parameters: pointer arg_p;
* char * field_p;
*
* Return value: int ret_code;
*/
#include "menu.h"
int
ckf_empty(arg_p, field_p)
pointer arg_p;
char * field_p;
{
#ifdef lint
arg_p = arg_p;
#endif
if (strlen(field_p) == 0) {
menu_mesg("Field must be non-empty.");
return(0);
}
return(1);
} /* end ckf_empty() */