Changeset bfc0072 in buchla-68k
- Timestamp:
- 07/08/2017 01:00:47 PM (7 years ago)
- Branches:
- master
- Children:
- dfe4288
- Parents:
- 72d4545
- Files:
-
- 1 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
iolib/dofmt.c
r72d4545 rbfc0072 24 24 #include "stddefs.h" 25 25 #include "ctype.h" 26 #include " varargs.h"26 #include "stdarg.h" 27 27 28 28 #define MAXDIGS 11 -
iolib/printf.c
r72d4545 rbfc0072 15 15 #include "stddefs.h" 16 16 #include "biosdefs.h" 17 #include " varargs.h"17 #include "stdarg.h" 18 18 19 19 extern long dofmt_(); … … 27 27 */ 28 28 29 long 30 printf(fmt, va_alist) 31 char *fmt; 32 va_dcl 29 long printf(char *fmt, ...) 33 30 { 34 31 register long count; 35 32 va_list aptr; 36 33 37 va_start(aptr );34 va_start(aptr, fmt); 38 35 count = dofmt_(fpsub, fmt, aptr); 39 36 va_end(aptr); -
iolib/sprintf.c
r72d4545 rbfc0072 6 6 */ 7 7 8 #include " varargs.h"8 #include "stdarg.h" 9 9 10 10 extern long dofmt_(); … … 19 19 */ 20 20 21 long 22 sprintf(str, fmt, va_alist) 23 char *str, *fmt; 24 va_dcl 21 long sprintf(char *str, char *fmt, ...) 25 22 { 26 23 register long count; 27 24 va_list aptr; 28 25 29 va_start(aptr);30 26 buff = str; 27 va_start(aptr, fmt); 31 28 count = dofmt_(spsub, fmt, aptr); 29 va_end(aptr); 32 30 *buff = '\0'; 33 31 return(count); -
libcio/fprintf.c
r72d4545 rbfc0072 8 8 #include "stdio.h" 9 9 #include "stddefs.h" 10 #include " varargs.h"10 #include "stdarg.h" 11 11 12 12 static FILE *Stream; … … 17 17 static int fpsub(); 18 18 19 int 20 fprintf(stream, fmt, va_alist) 21 FILE *stream; 22 char *fmt; 23 va_dcl 19 int fprintf(FILE *stream, char *fmt, ...) 24 20 { 25 21 register int count; … … 27 23 28 24 Stream = stream; 29 va_start(aptr );25 va_start(aptr, fmt); 30 26 count = _dofmt(fpsub, fmt, aptr); 31 27 va_end(aptr);
Note:
See TracChangeset
for help on using the changeset viewer.