Back to index

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

Go to the source code of this file.

Functions

int _IO_puts (char *str) const

Function Documentation

int _IO_puts ( char *  str) const

Definition at line 32 of file ioputs.c.

{
  int result = EOF;
  _IO_size_t len = strlen (str);
  _IO_acquire_lock (_IO_stdout);

  if ((_IO_vtable_offset (_IO_stdout) != 0
       || _IO_fwide (_IO_stdout, -1) == -1)
      && _IO_sputn (_IO_stdout, str, len) == len
      && _IO_putc_unlocked ('\n', _IO_stdout) != EOF)
    result = len + 1;

  _IO_release_lock (_IO_stdout);
  return result;
}

Here is the call graph for this function: