blob: 036023b82631a5287b8baa2b60775b0539daaf2c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
--- icb/strings.c.orig Sun Sep 19 18:14:24 1999
+++ icb/strings.c Sun Sep 19 18:20:05 1999
@@ -3,7 +3,7 @@
#include "icb.h"
#include "externs.h"
-#include <varargs.h>
+#include <stdarg.h>
extern char *charmap;
@@ -334,19 +334,12 @@
/* call with strscat(dest, src, src, ...) */
char *
-strscat(va_alist)
-va_dcl
+strscat(char *dest, ...)
{
- char *dest, *src;
va_list args;
+ char *src;
- va_start(args);
-
- /* get the dest pointer */
- if ((dest = va_arg(args, char *)) == 0) {
- puts("fatal error: strscat called without dest");
- exit(-1);
- }
+ va_start(args, dest);
/* copy strings */
while ((src = va_arg(args, char *)) != NULL) {
|