#include <stdio.h>

int putchar( int character );

This function writes character to stdout. putchar() returns the character written. If an error occurs, it returns EOF.

putchar() is useful for your "Press enter to continue" prompts. Just stick it, without any arguments, after the printf() call. Nifty, eh?

Back to Essential C Functions.

Log in or register to write something here or to contact authors.