Subversion Repositories SvarDOS

Rev

Rev 445 | Rev 538 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 445 Rev 530
Line 23... Line 23...
23
 */
23
 */
24
 
24
 
25
#ifndef HELPERS_H
25
#ifndef HELPERS_H
26
#define HELPERS_H
26
#define HELPERS_H
27
 
27
 
28
/* case-insensitive comparison of strings, returns non-zero on equality */
28
/* case-insensitive comparison of strings, compares up to maxlen characters.
-
 
29
 * returns non-zero on equality. */
29
int imatch(const char *s1, const char *s2);
30
int imatchlim(const char *s1, const char *s2, unsigned short maxlen);
-
 
31
 
-
 
32
#define imatch(a,b) imatchlim(a,b,0xffff)
30
 
33
 
31
/* returns zero if s1 starts with s2 */
34
/* returns zero if s1 starts with s2 */
32
int strstartswith(const char *s1, const char *s2);
35
int strstartswith(const char *s1, const char *s2);
33
 
36
 
34
/* outputs a NULL-terminated string to stdout */
37
/* outputs a NULL-terminated string to stdout */