Back to index

glibc  2.9
iosetbuffer.c File Reference
#include "libioP.h"

Go to the source code of this file.


void _IO_setbuffer (_IO_FILE *fp, char *buf, _IO_size_t size)

Function Documentation

void _IO_setbuffer ( _IO_FILE fp,
char *  buf,
_IO_size_t  size 

Definition at line 32 of file iosetbuffer.c.

  CHECK_FILE (fp, );
  _IO_acquire_lock (fp);
  fp->_flags &= ~_IO_LINE_BUF;
  if (!buf)
    size = 0;
  (void) _IO_SETBUF (fp, buf, size);
  if (_IO_vtable_offset (fp) == 0 && fp->_mode == 0 && _IO_CHECK_WIDE (fp))
    /* We also have to set the buffer using the wide char function.  */
    (void) _IO_WSETBUF (fp, buf, size);
  _IO_release_lock (fp);

Here is the caller graph for this function: