Subversion Repositories SvarDOS

Rev

Rev 352 | Rev 388 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
352 mateuszvis 1
#ifndef HELPERS_H
2
#define HELPERS_H
3
 
4
/* case-insensitive comparison of strings, returns non-zero on equality */
5
int imatch(const char *s1, const char *s2);
6
 
7
/* returns zero if s1 starts with s2 */
8
int strstartswith(const char *s1, const char *s2);
9
 
369 mateuszvis 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
 
352 mateuszvis 16
#endif