X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/9455b51c2a0554ea2bd55a28dee5a5c2a6707fc6..17a9ca0cdc865d16ecd12bd9fb08b5ab2b329d73:/armsrc/string.c?ds=sidebyside 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;