Changeset 7258c6a in buchla-68k for iolib/sprintf.c
- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
iolib/sprintf.c
r0292fbb r7258c6a 8 8 #include "stdarg.h" 9 9 10 extern long dofmt_(int (*putsub)(), char*format, va_list args);10 extern int32_t dofmt_(int16_t (*putsub)(), int8_t *format, va_list args); 11 11 12 static char*buff;13 static int spsub(charc);12 static int8_t *buff; 13 static int16_t spsub(int8_t c); 14 14 15 15 /* … … 19 19 */ 20 20 21 long sprintf(char *str, char*fmt, ...)21 int32_t sprintf(int8_t *str, int8_t *fmt, ...) 22 22 { 23 register longcount;23 register int32_t count; 24 24 va_list aptr; 25 25 … … 38 38 */ 39 39 40 static int spsub(charc)40 static int16_t spsub(int8_t c) 41 41 { 42 42 return((*buff++ = c) & 0xFF);
Note:
See TracChangeset
for help on using the changeset viewer.