1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
16 // Common string.h functions
17 //-----------------------------------------------------------------------------
24 int strlen(const char *str
);
25 void *memcpy(void *dest
, const void *src
, int len
);
26 void *memmove(void *dest
, const void *src
, size_t len
);
27 void *memset(void *dest
, uint8_t c
, int len
);
28 int memcmp(const void *av
, const void *bv
, int len
);
29 void memxor(uint8_t *dest
, uint8_t *src
, size_t len
);
30 char *strncat(char *dest
, const char *src
, unsigned int n
);
31 char *strcat(char *dest
, const char *src
);
32 void strreverse(char s
[]);
33 void itoa(int n
, char s
[]);
34 char *strcpy(char *dst
, const char *src
);
35 char *strncpy(char *dst
, const char *src
, size_t n
);
36 int strcmp(const char *s1
, const char *s2
);
37 char *strtok(char *s
, const char *delim
);
38 char *strchr(const char *s
, int c
);
39 size_t strspn(const char *s1
, const char *s2
);
40 char *strrchr(const char *s
, int c
);
41 size_t strcspn(const char *s1
, const char *s2
);
42 char *strpbrk(const char *s1
, const char *s2
);
43 int strncmp(const char *s1
, const char *s2
, size_t n
);
44 unsigned long strtoul(const char *p
, char **out_p
, int base
);
45 long strtol(const char *p
, char **out_p
, int base
);
46 char c_tolower(int c
);
47 char c_isprint(unsigned char c
);
49 #endif /* __STRING_H */