Back to index

glibc  2.9
Functions | Variables
memopen.c File Reference
#include <stdio.h>

Go to the source code of this file.

Functions

int main (void)

Variables

static char buffer [] = "foobar"

Function Documentation

int main ( void  )

Definition at line 6 of file memopen.c.

{
  int ch;
  FILE *stream;

  stream = fmemopen (buffer, strlen (buffer), "r");
  while ((ch = fgetc (stream)) != EOF)
    printf ("Got %c\n", ch);
  fclose (stream);

  return 0;
}

Here is the call graph for this function:


Variable Documentation

char buffer[] = "foobar" [static]

Definition at line 3 of file memopen.c.