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


Ignore:
Timestamp:
07/08/2017 01:00:47 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
dfe4288
Parents:
72d4545
Message:

varargs.h -> stdarg.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • iolib/sprintf.c

    r72d4545 rbfc0072  
    66*/
    77
    8 #include "varargs.h"
     8#include "stdarg.h"
    99
    1010extern long     dofmt_();
     
    1919*/
    2020
    21 long
    22 sprintf(str, fmt, va_alist)
    23 char *str, *fmt;
    24 va_dcl
     21long sprintf(char *str, char *fmt, ...)
    2522{
    2623        register long count;
    2724        va_list aptr;
    2825
    29         va_start(aptr);
    3026        buff = str;
     27        va_start(aptr, fmt);
    3128        count = dofmt_(spsub, fmt, aptr);
     29        va_end(aptr);
    3230        *buff = '\0';
    3331        return(count);
Note: See TracChangeset for help on using the changeset viewer.