Mega Code Archive

 
Categories / C / Stdio H
 

Puts

//Header file:     #include <stdio.h>   //Declaration:     int puts(const char *str);  //Return:          returns a nonnegative value on success or an EOF upon failure.    #include <stdio.h>   #include <string.h>   int main(void)   {     char str[80];     strcpy(str, "this is an example");     puts(str);     return 0;   }           /* this is an example */