12.07.2015 Views

JYACC FORMAKER C Programmer's Guide Contents 1 ... - Prolifics

JYACC FORMAKER C Programmer's Guide Contents 1 ... - Prolifics

JYACC FORMAKER C Programmer's Guide Contents 1 ... - Prolifics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

NAMESYNOPSISsm_is_yes - boolean value of a yes/no fieldint sm_is_yes (field_number)int field_number;DESCRIPTIONThe first character of the specified field_number is compared with the firstletter of the SM_YES entry in the message file, ignoring case, and the resultinglogical value is returned.This function is ordinarily used with one-letter fields restricted to yes or noby the appropriate character edit. Unlike the field data retrieval functions(sm_fptr, etc.), it does not ignore leading blanks.RETURNS1 if the field is found, and its contents match as described above; 0otherwise.VARIANTS AND RELATED FUNCTIONSEXAMPLEsm_n_is_yes (field_name);sm_e_is_yes (field_name, element);sm_i_is_yes (field_name, occurrence);sm_o_is_yes (field_number, occurrence);/* Keep processing until the user enters "n" in* a flag field. This is an alternative for the*& usual checking against the EXIT key. */while (sm_n_is_yes ("continue")){sm_openkeybd ();}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!