diff options
Diffstat (limited to 'str.h')
-rw-r--r-- | str.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ | |||
1 | /* Public domain. */ | ||
2 | |||
3 | #ifndef STR_H | ||
4 | #define STR_H | ||
5 | |||
6 | extern unsigned int str_copy(char *,const char *); | ||
7 | extern int str_diff(const char *,const char *); | ||
8 | extern int str_diffn(const char *,const char *,unsigned int); | ||
9 | extern unsigned int str_len(const char *); | ||
10 | extern unsigned int str_chr(const char *,int); | ||
11 | extern unsigned int str_rchr(const char *,int); | ||
12 | extern int str_start(const char *,const char *); | ||
13 | |||
14 | #define str_equal(s,t) (!str_diff((s),(t))) | ||
15 | |||
16 | #endif | ||