Back to index

glibc  2.9
Defines | Functions
putw.c File Reference
#include <stdio.h>
#include <libio/iolibio.h>

Go to the source code of this file.

Defines

#define fwrite(p, n, m, s)   INTUSE(_IO_fwrite) (p, n, m, s)

Functions

int putw (int w, FILE *stream)

Define Documentation

#define fwrite (   p,
  n,
  m,
  s 
)    INTUSE(_IO_fwrite) (p, n, m, s)

Definition at line 21 of file putw.c.


Function Documentation

int putw ( int  w,
FILE stream 
)

Definition at line 25 of file putw.c.

{
  /* Is there a better way?  */
  if (fwrite ((const void *) &w, sizeof (w), 1, stream) < 1)
    return EOF;
  return 0;
}