File - exit(1 nwritten = fwrite(Tutilis sizeof Tutilis[0 1 f fclose(f if(nwritten< 1 fprintf(stderr"Writing to file failed\n" exit(1}

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
void crea_fich(struct utilisateur *Tutilis) { FILE *f; size_t nwritten; f = fopen("futilis.dat","wb"); if (f == NULL) { fprintf(stderr, "Cannot open file for writing.\n");
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: exit(1); } nwritten = fwrite(Tutilis, sizeof Tutilis[0], 1, f); fclose(f); if (nwritten < 1) { fprintf(stderr, "Writing to file failed.\n"); exit(1); } }...
View Full Document

This note was uploaded on 10/02/2011 for the course CS 7103 taught by Professor Kannan during the Fall '11 term at LSU.

Ask a homework question - tutors are online