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>Query/Reply FunctionsThe query/reply functions provide a variety of useful functions for interacting with an operator using consoleI/O.Summary of Query / Reply FunctionsQRchar Query/Reply for character using: %cQRconfirmQRdateQRdatetimeQRdoubleQuery/Reply for Y/N confirmationQuery/Reply for dateQuery/Reply for date and timeQuery/Reply for double using: %lf %le %lE %lg %lGQRfloat Query/Reply for float using: %f %e %E %g %GQRlongQRshortQuery/Reply for long using: %li %ld %lu %loQuery/Reply for short using: %i %hi %d %hd %u %hu %o %hoQRstring Query/Reply for string using: %sQRtimeQRulongQRushortQuery/Reply for timeQuery/Reply for ulong using: %li %ld %lu %loQuery/Reply for ushort using: %i %hi %d %hd %u %hu %o %hoQRchar -- Query/Reply for character using: %cDescription: Query/Reply for character using: %cPrototype:Inputs:Returns:bool QRchar(char *prompt, char *fmt, bool crok, char *reply, char *instr, bool uc);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)reply is a pointer to a character variable to hold the replyinstr if non-zero must contain a set of characters that the reply must match to be validuc is set TRUE to force all replies to upper case.Returns TRUE for all but query cancelled (CTRL-C typed).QRconfirm -- Query/Reply for Y/N confirmationDescription:Prototype:Inputs:Returns:Query/Reply for Y/N confirmationbool QRconfirm(char *prompt, bool defyes, bool crok);prompt is a zero terminated C string to display as a prompt for the user.defyes is set TRUE to make 'Y' the default reply.crok is set TRUE to accept the default reply with just a carriage-return (enter key)Returns TRUE Yes replies.PERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.41 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!