diff options
author | joe <joe@jerkface.net> | 2015-05-08 23:07:47 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2015-05-08 23:07:47 -0400 |
commit | 220534453eecc2c07ad710d72268aafd20b83138 (patch) | |
tree | 469bd5db135e31b7ea908152aa3389b9b1e06d5b /str.h |
initial commit
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 | ||