style
This commit is contained in:
1 parent
6624a978d1
commit
e443003733
1 file changed
+7
-5
+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