Declaration:
int pscanf(char title[], char format[], ... );
Description
performs the same as scanf; however, it receives an additional parameter, the header of the prompt dialog box.
pscanf scans a series of input fields one character at a time reading from a stream. After that, each field is formatted in accordance with a format specifier passed to pscanf in the format string pointed to by format. Finally, pscanf stores the formatted input at the address passed to it as the argument following the format. The number of format specifiers and addresses must be the same as the number of input fields.
Notes
1.
|
scanf Format Specifiers.
|
2.
|
All arguments for this function shall be arrays, because only the array parameters are passed by address to functions. Also, see example for scanf.
|
pscanf can stop scanning a particular field before it reaches the normal end-of-field character (whitespace) or it can terminate entirely for a number of reasons. See scanf for a discussion on possible causes.
Returned Value
pscanf returns the number of input fields successfully scanned, converted and stored. The return value does not include the scanned fields that were not stored. If no fields are stored, then 0 will be returned.
|