Function RCSW_STDIO_GETCHAR

Function Documentation

int RCSW_STDIO_GETCHAR(void)

RCSW_CONFIG_STDIO_GETCHAR.

The name of the getchar()-like function to get a character from stdout in some way.

Note

We don’t put a weak attribute on the decl of the getchar() 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 getchar() should be available.