Back to index

glibc  2.9
Functions
iofputs.c File Reference
#include "libioP.h"
#include <string.h>

Go to the source code of this file.

Functions

int _IO_fputs (char *str, _IO_FILE *fp) const

Function Documentation

int _IO_fputs ( char *  str,
_IO_FILE fp 
) const

Definition at line 33 of file iofputs.c.

{
  _IO_size_t len = strlen (str);
  int result = EOF;
  CHECK_FILE (fp, EOF);
  _IO_acquire_lock (fp);
  if ((_IO_vtable_offset (fp) != 0 || _IO_fwide (fp, -1) == -1)
      && _IO_sputn (fp, str, len) == len)
    result = 1;
  _IO_release_lock (fp);
  return result;
}

Here is the call graph for this function: