www.delorie.com/djgpp/doc/libc-2.01/libc_310.html   search  
Go to the first, previous, next, last section, table of contents.


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 -1 on error.

Example

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


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997