version 1.6, 1997/11/14 00:23:58 |
version 1.7, 2001/11/21 15:26:39 |
|
|
|
|
#ifndef lint |
#ifndef lint |
#if 0 |
#if 0 |
static char sccsid[] = "@(#)strings.c 8.1 (Berkeley) 6/6/93"; |
static const char sccsid[] = "@(#)strings.c 8.1 (Berkeley) 6/6/93"; |
#else |
#else |
static char rcsid[] = "$OpenBSD$"; |
static const char rcsid[] = "$OpenBSD$"; |
#endif |
#endif |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
|
|
* The string spaces are of exponentially increasing size, to satisfy |
* The string spaces are of exponentially increasing size, to satisfy |
* the occasional user with enormous string size requests. |
* the occasional user with enormous string size requests. |
*/ |
*/ |
|
|
char * |
char * |
salloc(size) |
salloc(int size) |
int size; |
|
{ |
{ |
char *t; |
char *t; |
int s; |
int s; |
|
|
* since last reset. |
* since last reset. |
*/ |
*/ |
void |
void |
sreset() |
sreset(void) |
{ |
{ |
struct strings *sp; |
struct strings *sp; |
int index; |
int index; |
|
|
* Meant to be called in main, after initialization. |
* Meant to be called in main, after initialization. |
*/ |
*/ |
void |
void |
spreserve() |
spreserve(void) |
{ |
{ |
struct strings *sp; |
struct strings *sp; |
|
|