Fputs

The function fputs() writes the string pointed to by s to the stream pointed to by stream.

This can be used to write to the stderr stream instead of std out, or to a file.

fputs(2, "Error Error Error! Message will Explode!");

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License