Manpage of FWRITE

Google
Web www.fiveanddime.net

FWRITE

Section: NEWLIB (3)
Updated: 2005 Feb 23
Index Return to Main Contents
 

NAME

3.20 `fwrite'--write array elements

 

SYNOPSIS


     #include <stdio.h>
     size_t fwrite(const void *BUF, size_t SIZE,
         size_t COUNT, FILE *FP);  

DESCRIPTION

`fwrite' attempts to copy, starting from the memory location BUF, COUNT elements (each of size SIZE) into the file or stream identified by FP. `fwrite' may copy fewer elements than COUNT if an error intervenes.


   `fwrite' also advances the file position indicator (if any) for FP by the number of _characters_ actually written.

 

RETURNS

If `fwrite' succeeds in writing all the elements you specify, the result is the same as the argument COUNT. In any event, the result is the number of complete elements that `fwrite' copied to the file.

 

PORTABILITY

ANSI C requires `fwrite'.


   Supporting OS subroutines required: `close', `fstat', `isatty', `lseek', `read', `sbrk', `write'.

 

SEE ALSO

fwrite is part of the libc library. The full documentation for libc is maintained as a Texinfo manual. If info and libc are properly installed at your site, the command
info libc

will give you access to the complete manual.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURNS
PORTABILITY
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:25:17 GMT, May 16, 2005



www.fiveanddime.net








Google
Web www.fiveanddime.net