fputs

Syntax

int fputs(char * s, int * fileptr)

Arguments

s
Pointer to a string which contains the bytes to be written.
fileptr
Pointer to a file opened using fopen.

Return

A positive number if successful, otherwise a negative number.

Description

Writes the contents of string s to the file referenced by fileptr.

See Also

fopen, fgets, fputc, fwrite

Comments

Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.