equal
deleted
inserted
replaced
|
1 #ifndef STRING_H |
|
2 #define STRING_H |
|
3 |
|
4 /* |
|
5 * dst: destination buffer |
|
6 * src: string to copy/concatenate |
|
7 * size: size of the destination buffer |
|
8 * usage: ttd_strlcpy(dst, src, lengthof(dst)); |
|
9 */ |
|
10 void ttd_strlcat(char *dst, const char *src, size_t size); |
|
11 void ttd_strlcpy(char *dst, const char *src, size_t size); |
|
12 |
|
13 /* |
|
14 * dst: destination buffer |
|
15 * src: string to copy |
|
16 * last: pointer to the last element in the dst array |
|
17 * if NULL no boundary check is performed |
|
18 * returns a pointer to the terminating \0 in the destination buffer |
|
19 * usage: strecpy(dst, src, lastof(dst)); |
|
20 */ |
|
21 char* strecat(char* dst, const char* src, const char* last); |
|
22 char* strecpy(char* dst, const char* src, const char* last); |
|
23 |
|
24 #endif |