X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/9455b51c2a0554ea2bd55a28dee5a5c2a6707fc6..4401050bcc877a9f1137dc6241f0895d0ca09d98:/armsrc/string.c diff --git a/armsrc/string.c b/armsrc/string.c index cc71276c..6552ce1c 100644 --- a/armsrc/string.c +++ b/armsrc/string.c @@ -7,9 +7,7 @@ //----------------------------------------------------------------------------- // Common string.h functions //----------------------------------------------------------------------------- - #include "string.h" -#include void *memcpy(void *dest, const void *src, int len) { @@ -48,6 +46,11 @@ int memcmp(const void *av, const void *bv, int len) return 0; } +void memxor(uint8_t * dest, uint8_t * src, size_t len) { + for( ; len > 0; len--,dest++,src++) + *dest ^= *src; +} + int strlen(const char *str) { int l = 0;