mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
style
This commit is contained in:
+7
-5
@@ -191,13 +191,15 @@ int FillBuffer(uint8_t *data, size_t maxDataLength, size_t *dataLength, ...) {
|
||||
}
|
||||
|
||||
bool CheckStringIsHEXValue(const char *value) {
|
||||
for (size_t i = 0; i < strlen(value); i++)
|
||||
if (!isxdigit(value[i]))
|
||||
return false;
|
||||
|
||||
if (strlen(value) % 2)
|
||||
if (strlen(value) % 2) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < strlen(value); i++) {
|
||||
if (!isxdigit(value[i])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user