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