| scanf | Function (Macro)

stdio.h

short scanf (const char *format, ...);

Console input parsing function.

Works like sscanf, but reads the input from the keyboard using getsn rather than from a buffer of type `char *`. [ENTER] is interpreted as EOF.
The input is echoed on the screen. No newline will be output at the end of the input, no matter whether it resulted from the user pressing [ENTER] or from a format matching error.
The amount of possible user input is limited by available memory. scanf may also return 0 if there was no memory left at all to allocate the temporary buffer.

Uses: getsn, sscanf, HeapAllocPtr, HeapFreePtr, HeapMax