C Programming/stdio.h/fputs

fputs is a function in C programming language that writes an array of characters to a given file stream. stands for file put string. It is included in the C standard library header file.

The function  terminates after reaching terminating null character. The null character is not copied to the stream. The prototype of the function is as follows:

The stream argument specifies the stream to which the string will be written. is commonly used here, for writing to the standard output. Otherwise, a  value returned by the   function is used.

Sample usage
The following example is 'hello world' program using :

The following is a program that asks the user for his name and then writes it out: