Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
iceman1001 committed Jan 27, 2025
1 parent 6624a97 commit e443003
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions client/src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e443003

Please sign in to comment.