/*
#include
size_t fwrite ( const void * restrict buffer , size_t size , size_t n ,
FILE * restrict fp );
*/
#include
#include
int main(void)
{
FILE *fichier;
char *nom="sakoba";
if((fichier=fopen("test.txt", "wb"))==NULL) {
printf("Impossible d'ouvrir le fichier.");
exit(1);
}
fwrite(nom, sizeof(nom)/sizeof(nom[0]), 1, fichier);
fclose(fichier);
return 0;
}