Changeset 8973acd in buchla-68k for libcio/fwrite.c
- Timestamp:
- 07/15/2017 03:12:10 PM (7 years ago)
- Branches:
- master
- Children:
- ea232f9
- Parents:
- 7d0d347
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/fwrite.c
r7d0d347 r8973acd 19 19 */ 20 20 21 int16_t fwrite( int8_t*buffer, int16_t size, int16_t number, FILE *stream)21 int16_t fwrite(void *buffer, int16_t size, int16_t number, FILE *stream) 22 22 { 23 uint8_t *buffer8; 23 24 register int16_t i, j; 25 26 buffer8 = buffer; 24 27 25 28 if (size < 0) /* check size for validity */ … … 31 34 for (i = 0; i < number; ++i) 32 35 for (j = 0; j < size; ++j) 33 if (putc(*buffer ++, stream) EQ EOF)36 if (putc(*buffer8++, stream) EQ EOF) 34 37 return(i); 35 38
Note:
See TracChangeset
for help on using the changeset viewer.