]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/util.c
extracted download and signature verification functionality to a function in tools...
[proxmark3-svn] / client / util.c
index cbb1bfda9599126b53ef4eec2202167880b19118..ae213e43f55a4521dddafd70393ae6e950119e71 100644 (file)
@@ -194,3 +194,15 @@ int param_gethex(const char *line, int paramnum, uint8_t * data, int hexcnt)
 
        return 0;
 }
+
+int param_getstr(const char *line, int paramnum, char * str)
+{
+       int bg, en;
+
+       if (param_getptr(line, &bg, &en, paramnum)) return 0;
+       
+       memcpy(str, line + bg, en - bg + 1);
+       str[en - bg + 1] = 0;
+       
+       return en - bg + 1;
+}
Impressum, Datenschutz