www.delorie.com/djgpp/doc/libc/libc_371.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

fwrite

Syntax

 
#include <stdio.h>

size_t fwrite(void *buffer, size_t size, size_t number, FILE *file);

Description

This function writes size*number characters from buffer to file.

Return Value

The number of items of size size written, or less if there was an error.

Portability

ANSI/ISO C C89; C99
POSIX 1003.2-1992; 1003.1-2001

Example

 
int foo[10];
fwrite(foo, sizeof(int), 10, stdin);


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004