File: danlib.h

package info (click to toggle)
hebcal 4.31-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 7,760 kB
  • sloc: ansic: 6,361; sh: 535; perl: 134; makefile: 60
file content (20 lines) | stat: -rw-r--r-- 531 bytes parent folder | download | duplicates (2)
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