mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-20 21:33:19 -07:00
Cleanup armsrc/string.c and string.h (#964)
- remove unnecessary memxor(), strreverse(), and itoa() functions - Use correct types in function declarations and definitions - add memmove() function. Gcc may generate calls to memcmp(), memcpy(), memset() and memmove()
This commit is contained in:
parent
efd0327132
commit
555fa19773
2 changed files with 38 additions and 57 deletions
|
@ -15,15 +15,12 @@
|
|||
#include <stdint.h>
|
||||
#include "util.h"
|
||||
|
||||
int strlen(const char *str);
|
||||
RAMFUNC void *memcpy(void *dest, const void *src, int len);
|
||||
void *memset(void *dest, int c, int len);
|
||||
RAMFUNC int memcmp(const void *av, const void *bv, int len);
|
||||
void memxor(uint8_t * dest, uint8_t * src, size_t len);
|
||||
char *strncat(char *dest, const char *src, unsigned int n);
|
||||
RAMFUNC void *memcpy(void *dest, const void *src, size_t len);
|
||||
void *memset(void *dest, int c, size_t len);
|
||||
void *memmove(void *dest, const void *src, size_t len);
|
||||
RAMFUNC int memcmp(const void *av, const void *bv, size_t len);
|
||||
size_t strlen(const char *str);
|
||||
char *strncat(char *dest, const char *src, size_t n);
|
||||
char *strcat(char *dest, const char *src);
|
||||
void strreverse(char s[]);
|
||||
void itoa(int n, char s[]);
|
||||
|
||||
|
||||
#endif /* __STRING_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue