fread

fputs

#include <stdio.h>int fputs(const char *str, FILE *stream);

The fputs( ) function writes the contents of the string pointed to by str to the specified stream. The null terminator is not written.

In C99, str and stream are qualified by restrict.

The fputs( ) function returns nonnegative on success and EOF on failure.

If the stream is opened in text mode, certain character translations may take place. This means that there may not be a one-to-one mapping of the string onto the file. However, if the stream is opened in binary mode, no character translations will occur, and a one-to-one mapping between the string and the file will exist.

Related functions are fgets( ), gets( ), puts( ), fprintf( ), and fscanf( ).




C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net