10.07.2015 Views

CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc

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.

<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>QRstring -- Query/Reply for string using: %sDescription:Prototype:Inputs:Returns:Query/Reply for string using: %s,bool QRstring(char *prompt, char *fmt, bool crok, char *strbuf, short len);prompt is a zero terminated C string to display as a prompt for the user.fmt is a standard C libary printf/scanf format stringcrok is set TRUE to accept the default reply with just a carriage-return (enter key)strbuf is a pointer to a character buffer to hold the replylen is the maximum number of character to place in the reply bufferReturns TRUE for all but query cancelled (CTRL-C typed).QRtime -- Query/Reply for timeDescription:Prototype:Inputs:Returns:Notes:Query/Reply for timebool QRtime(char *prompt, bool crok, struct tm *tm);prompt is a zero terminated C string to display as a prompt for the user.crok is set TRUE to accept the default reply with just a carriage-return (enter key)tm is a standard C library tm structure pointer from with fields tm_hour, tm_min, andtm_secs filled in from the scan.Returns TRUE for all but query cancelled (CTRL-C typed).Replies are accepted in the form: HOURSMINUTESSECONDS may be any single comma, space, dash, period, or slash.QRulong -- Query/Reply for ulong using: %li %ld %lu %loDescription:Prototype:Inputs:Returns:Query/Reply for ulong using: %li %ld %lu %lobool QRulong(char *prompt, char *fmt, bool crok, ulong *value, ulong min, ulongmax);prompt is a zero terminated C string to display as a prompt for the user.fmt is a standard C libary printf/scanf format stringcrok is set TRUE to accept the default reply with just a carriage-return (enter key)value is a pointer to a ulong variable that will hold the replymin if not equal to max, min is the minimum valid value to accept for a replymax if not equal to min, max is the maximum valid value to accept for a replyReturns TRUE for all but query cancelled (CTRL-C typed).QRushort -- Query/Reply for ushort using: %i %hi %d %hd %u %hu %o %hoDescription:Prototype:Inputs:Returns:Query/Reply for ushort using: %i %hi %d %hd %u %hu %o %hobool QRushort(char *prompt, char *fmt, bool crok, ushort *value, ushort min, ushortmax);prompt and fmt and crok same as described abovevalue is a pointer to a ushort variable that will hold the replymin and max same as described aboveReturns TRUE for all but query cancelled (CTRL-C typed).PERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.44 of 84<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>7/19/2005

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

Saved successfully!

Ooh no, something went wrong!