1 /* Copyright(c) 1994  Danny Sadinoff
2   See section COPYING for conditions for redistribution
3 */
4 #ifndef __DANLIB__
5 #define __DANLIB__
6 
7 #include <stdio.h>
8 
9 #define CHAR2NUM(x) ((x) - '0')
10 #define LAST_INDEX(x) (sizeof x / sizeof x[0])
11 #define strEQ(X,Y) (0 == strcmp((X),(Y)))
12 
13 void initStr( char **, size_t );
14 int isAllNums( const char * );
15 const char *numSuffix( int );
16 char *hc_itoa( int );
17 int istrncasecmp( size_t,const char *,const char * );
18 int lookup_string( const char *str, const char *arr[], int size, int len );
19 
20 #endif
21