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 possitive number if succesful, otherwise a negative number.

Description

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

Also see

fopen, fgets, fputc, fwrite

Comments

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