fputs

Writes a string to a stream.

int fputs (char * string, FILE * stream);

Required Header
<stdio.h>

Return Value

This function returns zero on success, EOF indicates an error.

Parameters

string

  Output string

stream

  A pointer to the string to write

Remarks

The fputs function writes string to stream, the null-terminator is not copied to stream.

Stream I/O Routines

See Also    fgetc, fputc, _fputchar, fwrite, putc, putchar, puts