In C programming the <stdio.h> fputs function writes the string to the specified stream without the null terminating character.The stream here can be file or console.The declaration of the function is given below.
|int fputs(const char * restrict s,|
FILE * restrict stream);
s -The string to write to stream.
stream -The stream to which the the string ‘s’ is to be written.
int -Returns EOF if a write error occurs;otherwise it returns a non negative value.
Note as stated earlier the null terminating character is not written to the stream.
ret=fputs(str , stdout);
printf(“\nret=%d” , ret);