version 1.5, 2003/06/03 02:56:16 |
version 1.6, 2004/07/20 03:50:26 |
|
|
* malloc with result test |
* malloc with result test |
*/ |
*/ |
void * |
void * |
xmalloc(size) |
xmalloc(u_int size) |
u_int size; |
|
{ |
{ |
void *p; |
void *p; |
|
|
|
|
* realloc with result test |
* realloc with result test |
*/ |
*/ |
void * |
void * |
xrealloc(p, size) |
xrealloc(void *p, u_int size) |
void *p; |
|
u_int size; |
|
{ |
{ |
if (p == NULL) /* Compatibility hack. */ |
if (p == NULL) /* Compatibility hack. */ |
return (xmalloc(size)); |
return (xmalloc(size)); |
|
|
* the buffer). |
* the buffer). |
*/ |
*/ |
char * |
char * |
strregerror(errcode, preg) |
strregerror(int errcode, regex_t *preg) |
int errcode; |
|
regex_t *preg; |
|
{ |
{ |
static char *oe; |
static char *oe; |
size_t s; |
size_t s; |