CF2 API Reference (PDF) - Persistor Instruments Inc
CF2 API Reference (PDF) - Persistor Instruments Inc
CF2 API Reference (PDF) - Persistor Instruments Inc
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>CmdExtractArgValues – Say whatDescription:Prototype:Inputs:Returns:This function converts the presumably numeric strings into values for direct manipulation. Itbegins at the argument specified in first and continues through (inclusive) to the argumentspecified in last. It uses the value in radix (2, 8, 10, 16) for the default number base, thoughexplicit prefixes will override the default. It returns non-zero only if all of the arguments in rangewere numeric.int CmdExtractArgValues(CmdInfoPtr cip, short first, short last, short radix);cip is a pointer to the CmdInfoPtr structurefirst is the first valuelast is the last valueradix is the number baseZero if there was an error and non-zero otherwiseCmdExtractAVDosSwitches – Extract DOS switches from command lineDescription:Extracts DOS switches from a standard argc/**argv.Prototype: short CmdExtractAVDosSwitches(short argc, char **argv, char *fmt, ...);Inputs: ??Returns: ??CmdExtractCIDosSwitches – Say whatDescription:Extracts DOS switches from CmdInfoPtr.Prototype: short CmdExtractCIDosSwitches(CmdInfoPtr cip, char *fmt, ...);Inputs: ??Returns: ??CmdIsDigit – Is passed digit valid under number baseDescription:Prototype:Inputs:Returns:Determines if a digit passed is valid under a given number base . If the digit is valid it isconverted to its base 10 representation and saved at the location passed.int CmdIsDigit(short c, short base, short *val);c is the character to testbase is the number base to test the character with*val is a pointer the converted value is written1 if the digit is valid and was converted zero otherwiseNotes:PERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.62 of 84<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>7/19/2005