📄 ckf_int.c
字号:
#ifndef lintstatic char sccsid[] = "@(#) ckf_int.c 1.1@(#)ckf_int.c 1.1 92/07/30";#endif/* * Name: ckf_int.c * * Description: Determine if a field is an integer. If the field * is a valid integer, then one is returned. Otherwise, zero * is returned. * * Call syntax: ret_code = ckf_int(arg_p, field_p); * * Parameters: pointer arg_p; * char * field_p; * * Return value: int ret_code; */#include "menu.h"intckf_int(arg_p, field_p) pointer arg_p; char * field_p;{ extern int atoi();#ifdef lint arg_p = arg_p;#endif if (atoi(field_p) == 0 && *field_p != '0') { menu_mesg("Field is not a valid integer."); return(0); } return(1);} /* end ckf_int() */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -