repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* rs6000.c (output_function_profiler): Put label address in r0, and
[official-gcc.git]
/
libio
/
stdio
/
putw.c
blob
fd73261359cfaeb1bc9a616439ef23c12ceef639
1
#include
"libioP.h"
2
#include
"stdio.h"
3
4
#undef putw
5
6
int
7
putw
(
w
,
fp
)
8
int
w
;
9
FILE
*
fp
;
10
{
11
_IO_size_t written
;
12
CHECK_FILE
(
fp
,
EOF
);
13
written
=
_IO_sputn
(
fp
, (
const char
*)&
w
,
sizeof
(
w
));
14
return
written
==
sizeof
(
w
) ?
0
:
EOF
;
15
}