Fread

Résolu
christdu13 Messages postés 18 Date d'inscription lundi 24 avril 2006 Statut Membre Dernière intervention 15 juin 2006 - 2 mai 2006 à 15:51
cs_laurent1024 Messages postés 987 Date d'inscription mardi 31 mai 2005 Statut Membre Dernière intervention 30 août 2012 - 2 mai 2006 à 16:23
Bonjour
escusez moi j'ai un rou de mémoire quel sont les arguments qu'ils faut mettre dans la fonction fread?

merci a+

1 réponse

cs_laurent1024 Messages postés 987 Date d'inscription mardi 31 mai 2005 Statut Membre Dernière intervention 30 août 2012 25
2 mai 2006 à 16:23
int  fread (void *
buffer
, size_t
size
, size_t
count
, FILE *
stream
);


Read block of data from a stream.


 
Read count number of items each one with a size of size bytes from the
stream and stores it in the specified buffer.

 
Stream's postion indicator is increased by the number of bytes readed.

 
Total amount of bytes read is (size x count).



Parameters.


* buffer : Pointer to the destination structure with a minimum size of (size*count) bytes.

* size : Size in bytes of each item to be read.

* count : Number of items, each one with a size of size bytes.

* stream : pointer to an open file.


contre les trous de memoire : http://www.cplusplus.com/ref/#libs  (il n'y a pas que des references c++)
3
Rejoignez-nous