Download MISOSYS LC - tim
Transcript
LC LIBRARIES FPUTS() This function will output a string to a file/device. Its syntax is: I I I I I retcod I fputs( string, fp ); 0 string - is the address of the string to be output. I I I Fputs() outputs to the file defined by Mfp', all characters pointed to by "string", up to the first zero byte. RETURN CODE The "retcod" will be zero if no error was detected in the output operation. If an error was detected, then "retcod" will be equal to "EOF" (-1). WARNINGS Calling fputs() with an invalid file pointer can result in destruction of files or other havoc. STANDARD LIBRARY 4-9