Subversion Repositories SvarDOS

Rev

Rev 352 | Rev 388 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 352 Rev 369
1
#ifndef HELPERS_H
1
#ifndef HELPERS_H
2
#define HELPERS_H
2
#define HELPERS_H
3
 
3
 
4
/* case-insensitive comparison of strings, returns non-zero on equality */
4
/* case-insensitive comparison of strings, returns non-zero on equality */
5
int imatch(const char *s1, const char *s2);
5
int imatch(const char *s1, const char *s2);
6
 
6
 
7
/* returns zero if s1 starts with s2 */
7
/* returns zero if s1 starts with s2 */
8
int strstartswith(const char *s1, const char *s2);
8
int strstartswith(const char *s1, const char *s2);
9
 
9
 
-
 
10
/* outputs a NULL-terminated string to stdout */
-
 
11
void output_internal(const char *s, unsigned short nl);
-
 
12
 
-
 
13
#define output(x) output_internal(x, 0)
-
 
14
#define outputnl(x) output_internal(x, 1)
-
 
15
 
10
#endif
16
#endif
11
 
17