File: compat.h

package info (click to toggle)
gnupg1 1.4.23-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 20,864 kB
  • sloc: ansic: 127,978; sh: 7,756; asm: 4,610; makefile: 1,112; yacc: 291; perl: 196; pascal: 72; sed: 16
file content (25 lines) | stat: -rw-r--r-- 683 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _COMPAT_H_
#define _COMPAT_H_

/* Note this isn't identical to a C locale isspace() without \f and
   \v, but works for the purposes used here. */
#define ascii_isspace(a) ((a)==' ' || (a)=='\n' || (a)=='\r' || (a)=='\t')

int hextobyte( const char *s );
int ascii_toupper (int c);
int ascii_tolower (int c);
int ascii_strcasecmp( const char *a, const char *b );
int ascii_strncasecmp( const char *a, const char *b, size_t n);

#ifndef HAVE_STRSEP
char *strsep (char **stringp, const char *delim);
#endif

#if __GNUC__ >= 4 
char *xstrconcat (const char *s1, ...) __attribute__ ((sentinel(0)));
#else
char *xstrconcat (const char *s1, ...);
#endif


#endif /* !_COMPAT_H_ */