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 less if there was an error.

Portability

ANSI, POSIX

Example

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


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