1 /* $RCSfile: util.h,v $$Revision: 4.1 $$Date: 92/08/07 18:29:30 $
3 * Copyright (c) 1991-1997, Larry Wall
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Artistic License, as specified in the README file.
11 /* is the string for makedir a directory name or a filename? */
25 char * cpy2 _(( char *to, char *from, int delim ));
26 char * cpytill _(( char *to, char *from, int delim ));
27 void growstr _(( char **strptr, int *curlen, int newlen ));
28 char * instr _(( char *big, char *little ));
29 char * safecpy _(( char *to, char *from, int len ));
30 char * savestr _(( char *str ));
31 #if defined(I_STDARG) && defined(HAS_VPRINTF)
32 void croak _(( char *pat, ... ));
33 void fatal _(( char *pat, ... ));
34 void warn _(( char *pat, ... ));
35 #else /* defined(I_STDARG) && defined(HAS_VPRINTF) */
36 void croak _(( char *pat, int a1, int a2, int a3, int a4 ));
39 #endif /* defined(I_STDARG) && defined(HAS_VPRINTF) */
40 int prewalk _(( int numit, int level, int node, int *numericptr ));
42 Malloc_t safemalloc _((MEM_SIZE nbytes));
43 Malloc_t safecalloc _((MEM_SIZE elements, MEM_SIZE size));
44 Malloc_t saferealloc _((Malloc_t where, MEM_SIZE nbytes));
45 Free_t safefree _((Malloc_t where));