Changeset 7258c6a in buchla-68k for iolib/sprintf.c


Ignore:
Timestamp:
07/09/2017 04:45:34 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
8618599
Parents:
0292fbb
Message:

Use standard integer types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • iolib/sprintf.c

    r0292fbb r7258c6a  
    88#include "stdarg.h"
    99
    10 extern  long    dofmt_(int (*putsub)(), char *format, va_list args);
     10extern  int32_t dofmt_(int16_t (*putsub)(), int8_t *format, va_list args);
    1111
    12 static char     *buff;
    13         static int spsub(char c);
     12static int8_t   *buff;
     13        static int16_t spsub(int8_t c);
    1414
    1515/*
     
    1919*/
    2020
    21 long sprintf(char *str, char *fmt, ...)
     21int32_t sprintf(int8_t *str, int8_t *fmt, ...)
    2222{
    23         register long count;
     23        register int32_t count;
    2424        va_list aptr;
    2525
     
    3838*/
    3939
    40 static int spsub(char c)
     40static int16_t spsub(int8_t c)
    4141{
    4242        return((*buff++ = c) & 0xFF);
Note: See TracChangeset for help on using the changeset viewer.