-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstr.h
29 lines (26 loc) · 856 Bytes
/
str.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* $Log: str.h,v $
* Revision 1.2 2024-04-22 08:02:43+05:30 Cprogrammer
* updated prototypes for str_diff, str_diffn, str_len
*
* Revision 1.1 2014-08-20 18:06:29+05:30 Cprogrammer
* Initial revision
*
*
*/
#ifndef STR_H
#define STR_H
unsigned int str_copy(char *, char *);
unsigned int str_copyb(char *, char *, unsigned int);
int str_diff(const char *, const char *);
int str_diffn(const char *, const char *, unsigned int);
unsigned int str_len(const char *);
unsigned int str_chr(char *, int);
unsigned int str_rchr(char *, int);
int str_start(char *, char *);
char *str_chrn(char *, int, int);
char *str_str(char *, char *);
#include <sys/types.h>
size_t str_cspn(const char *, register const char *);
#define str_equal(s,t) (!str_diff((s),(t)))
#endif