X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/9455b51c2a0554ea2bd55a28dee5a5c2a6707fc6..16cfceb68966bb3022dee37f4c3f4f1bace3f9c5:/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;