Monday, October 3, 2011

Difference between fputs and fwrite

1. The fputs() writes to an open file.
2. The function will stop at the end of the file or when it reaches the specified length, whichever comes first.
3. This function returns the number of bytes written on success, or FALSE on failure.
4. The fputs() function is an alias of the fwrite() function.
5. There is no difference between fputs and fwrite, fputs() function is an alias of the fwrite() function.

No comments:

Post a Comment