Back to index

glibc  2.9
Functions | Variables
test-fmemopen.c File Reference
#include <stdio.h>
#include <string.h>

Go to the source code of this file.


int main (void)


static char buffer [] = "foobar"

Function Documentation

int main ( void  )

Definition at line 27 of file test-fmemopen.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 21 of file test-fmemopen.c.