01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PUTC (3S) PUTC (3S)<br />

BUGS<br />

the file stream is not open for writing, or if the output file cannot<br />

be grown. Because EOF is a valid integer, ferror(3S) should be<br />

used to detect putw errors.<br />

Because it is implemented as a macro, putc treats incorrectly a<br />

stream argument with side effects. In particular, putc(c, •f++ ); l<br />

doesn't work sensibly. Fputc should be used instead.<br />

Because of possible differences in word length and byte ordering,<br />

files written using putw are machine-dependent, and may not be<br />

read using getw on a different processor. For this reason the use<br />

of putw should be avoided.<br />

- 2-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!