repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* elf/dl-error.c (_dl_catch_error): Use __sigsetgjmp instead of
[glibc.git]
/
manual
/
examples
/
memopen.c
blob
682830fe5f8a4dfc965a00254619c4566828932a
1
#include <stdio.h>
2
3
static char
buffer
[] =
"foobar"
;
4
5
int
6
main
(
void
)
7
{
8
int
ch
;
9
FILE
*
stream
;
10
11
stream
=
fmemopen
(
buffer
,
strlen
(
buffer
),
"r"
);
12
while
((
ch
=
fgetc
(
stream
)) !=
EOF
)
13
printf
(
"Got %c
\n
"
,
ch
);
14
fclose
(
stream
);
15
16
return
0
;
17
}