-
Notifications
You must be signed in to change notification settings - Fork 1
/
strmem.h
31 lines (25 loc) · 898 Bytes
/
strmem.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
30
31
#ifndef STR_MEM_H
#define STR_MEM_H
/*
* strmem.h - interface to str functions
*
* include LICENSE
*/
#include <appmem.h>
extern char *app_strndup(const char *s, int size);
extern unsigned int app_power_of_2(unsigned int size);
extern char *app_strdup(const char *s);
extern int app_strlen(const char *s);
extern char *app_strcpy(char *s1, const char *s2);
extern char *app_strncpy(char *s1, const char *s2, int n);
extern int app_strcmp(const char *s1, const char *s2);
extern int app_strncmp(const char *s1, const char *s2, int n);
extern int app_strcasecmp(const char *s1, const char *s2);
extern int app_strncasecmp(const char *s1, const char *s2, int n);
char *app_strstr(const char *s1, const char *s2);
char *app_strcasestr(const char *s1, const char *s2);
void app_dup_str(char **varp, char *str);
#ifdef TRACE_MEM
void str_free_func(void *ptr);
#endif
#endif /* STR_MEM_H */