1 /* $RCSfile: util.h,v $$Revision: 4.1 $$Date: 92/08/07 18:29:30 $
3 * Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1999, 2000,
4 * by Larry Wall and others
6 * You may distribute under the terms of either the GNU General Public
7 * License or the Artistic License, as specified in the README file.
12 /* is the string for makedir a directory name or a filename? */
23 char * cpy2 ( char *to, char *from, int delim );
24 char * cpytill ( char *to, char *from, int delim );
25 void growstr ( char **strptr, int *curlen, int newlen );
26 char * instr ( char *big, char *little );
27 char * safecpy ( char *to, char *from, int len );
28 char * savestr ( char *str );
29 void croak ( const char *pat, ... );
30 void fatal ( const char *pat, ... );
31 void warn ( const char *pat, ... );
32 int prewalk ( int numit, int level, int node, int *numericptr );
34 Malloc_t safemalloc (MEM_SIZE nbytes);
35 Malloc_t safecalloc (MEM_SIZE elements, MEM_SIZE size);
36 Malloc_t saferealloc (Malloc_t where, MEM_SIZE nbytes);
37 Free_t safefree (Malloc_t where);