| printf_xy | Function (Macro)

stdio.h

void printf_xy (short x, short y, const char *format, ...);

Sends formatted output to the fixed place on the screen.

printf_xy is similar to the standard ANSI C printf function, except:

- this function displays formatted output to the screen at the strictly specified position, more precise, starting from the point (x, y);
- text printed with printf_xy will not wrap at the right end of the screen (if the text is longer, the result is unpredictable);
- characters '\n' will not be translated to "new line";
- this function will never cause screen scrolling;
- current print/plot position remains intact after executing this function.

printf_xy is a GNU C macro which calls sprintf and DrawStr.

Uses: sprintf, DrawStr