fehQlibs 26
Qlibs
Loading...
Searching...
No Matches
str.h
Go to the documentation of this file.
1#ifndef STR_H
2#define STR_H
3
4/*
5 * Revision 20170918, Kai Peter
6 * - added 'str_copyb()', thanks Erwin Hoffmann
7 * Revision 20170501, Kai Peter
8 * - added '*str_append' and 'str_cat'
9*/
10
11extern unsigned int str_copy(char *,const char *);
12extern unsigned int str_copyb(char *,const char *,unsigned int);
13extern int str_diff(const char *,const char *);
14extern int str_diffn(const char *,const char *,unsigned int);
15extern unsigned int str_len(const char *); // --> this produces lot of warnings !!!
16//extern unsigned int str_len();
17extern unsigned int str_chr(const char *,int);
18extern unsigned int str_rchr(const char *,int);
19extern int str_start(const char *,const char *);
20extern char *str_append(char *out,const char *s);
21
22#define str_equal(s,t) (!str_diff((s),(t)))
23#define str_cat(s,t) str_append(s,t)
24
25#endif
int str_diff(const char *, const char *)
Definition: str.c:40
int str_start(const char *, const char *)
Definition: str.c:116
int str_diffn(const char *, const char *, unsigned int)
Definition: str.c:54
unsigned int str_copyb(char *, const char *, unsigned int)
Definition: str.c:24
unsigned int str_len(const char *)
Definition: str.c:68
unsigned int str_rchr(const char *, int)
Definition: str.c:97
unsigned int str_chr(const char *, int)
Definition: str.c:81
char * str_append(char *out, const char *s)
Definition: str.c:128
unsigned int str_copy(char *, const char *)
Definition: str.c:11