version 1.2, 1995/11/01 17:16:32 |
version 1.3, 1996/04/21 23:43:26 |
|
|
/* $NetBSD: str.c,v 1.10.2.1 1995/10/30 22:55:14 jtc Exp $ */ |
/* $NetBSD: str.c,v 1.12 1996/03/29 02:17:34 jtc Exp $ */ |
|
|
/*- |
/*- |
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California. |
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California. |
|
|
#if 0 |
#if 0 |
static char sccsid[] = "@(#)str.c 5.8 (Berkeley) 6/1/90"; |
static char sccsid[] = "@(#)str.c 5.8 (Berkeley) 6/1/90"; |
#else |
#else |
static char rcsid[] = "$NetBSD: str.c,v 1.10.2.1 1995/10/30 22:55:14 jtc Exp $"; |
static char rcsid[] = "$NetBSD: str.c,v 1.12 1996/03/29 02:17:34 jtc Exp $"; |
#endif |
#endif |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
|
|
*t++ = '\0'; |
*t++ = '\0'; |
if (argc == argmax) { |
if (argc == argmax) { |
argmax *= 2; /* ramp up fast */ |
argmax *= 2; /* ramp up fast */ |
if (!(argv = (char **)realloc(argv, |
argv = (char **)erealloc(argv, |
(argmax + 1) * sizeof(char *)))) |
(argmax + 1) * sizeof(char *)); |
enomem(); |
|
} |
} |
argv[argc++] = start; |
argv[argc++] = start; |
start = (char *)NULL; |
start = (char *)NULL; |