Function RCSW_STDIO_PUTCHAR

Function Documentation

int RCSW_STDIO_PUTCHAR(int c)

RCSW_CONFIG_STDIO_PUTCHAR.

The name of the putchar()-like function to send a character to stdout in some way.

Note

We don’t put a weak attribute on the decl of the putchar() function declaration, because that tells the linker “don’t try to resolve this

symbol”, which it happily obeys, resulting in a NULL pointer dereference/segfault when the function is called if RCSW is built as a static library. If it is built as a dynamic library, normal putchar() should be available.