|
clibs
Tiny but handy utility libraries for C
|
Console printing related macros. More...
#include <stdio.h>
Go to the source code of this file.
Macros | |
| #define | END_OF_LINE "\n" |
| #define | PRINT(format, ...) |
| Print formated string to stdout without trailing EOL. More... | |
| #define | PERROR(format, ...) |
| Print formated string to stderr without trailing EOL. More... | |
| #define | PUTS(format, ...) |
| Print formated string to stdout with trailing EOL. More... | |
| #define | PUTERR(format, ...) |
| Print formated string to stderr with trailing EOL. More... | |
| #define | DEBUG_INFO(format, ...) |
| Print formated debug message to stderr with trailing EOL. More... | |
Console printing related macros.
The macro definition seen in this document represent the platform data of Unix.
| #define DEBUG_INFO | ( | format, | |
| ... | |||
| ) |
Print formated debug message to stderr with trailing EOL.
DEBUG_INFO works similarly to PUTERR but adds source file and line number. Hence, developers can track the location of the message more easily.
| #define PERROR | ( | format, | |
| ... | |||
| ) |
Print formated string to stderr without trailing EOL.
PERROR works as PRINT, but to stderr.
| #define PRINT | ( | format, | |
| ... | |||
| ) |
Print formated string to stdout without trailing EOL.
Basically, PRINT is just a repackaged printf function seen stdio.h.
| #define PUTERR | ( | format, | |
| ... | |||
| ) |
Print formated string to stderr with trailing EOL.
The EOL will change according to the host environment.
| #define PUTS | ( | format, | |
| ... | |||
| ) |
Print formated string to stdout with trailing EOL.
The EOL will change according to the host environment.
1.8.13