objwriter.cxx

changeset 33
fd35f6cb5f28
parent 32
d11a034aabfd
child 34
0a9a5902beaa
equal deleted inserted replaced
32:d11a034aabfd 33:fd35f6cb5f28
111 error ("size of unsigned char isn't 1, but %d!\n", sizeof (unsigned char)); 111 error ("size of unsigned char isn't 1, but %d!\n", sizeof (unsigned char));
112 112
113 for (unsigned int x = 0; x < MainBuffer->writesize; x++) { 113 for (unsigned int x = 0; x < MainBuffer->writesize; x++) {
114 unsigned char c = *(MainBuffer->buffer+x); 114 unsigned char c = *(MainBuffer->buffer+x);
115 fwrite (&c, 1, 1, fp); 115 fwrite (&c, 1, 1, fp);
116 numWrittenBytes ++; 116 numWrittenBytes++;
117 } 117 }
118 118
119 printf ("-- %u byte%s written to %s\n", numWrittenBytes, PLURAL (numWrittenBytes), filepath.chars()); 119 printf ("-- %u byte%s written to %s\n", numWrittenBytes, PLURAL (numWrittenBytes), filepath.chars());
120 fclose (fp); 120 fclose (fp);
121 } 121 }

mercurial