style
This commit is contained in:
1 parent
0a7ebcf3e3
commit
2ad635ce57
8 files changed
+21
-22
No files matched your search
+2
-2
@@ -575,7 +575,7 @@ int char2int(char c) {
|
||||
return -1; // Invalid character for hex
|
||||
}
|
||||
|
||||
// returns the number of bytes written
|
||||
// returns the number of bytes written
|
||||
int hexstr2ByteArr(const char *hexstr, unsigned char *array, size_t asize) {
|
||||
size_t n = 0;
|
||||
while (hexstr[n] != '\0') {
|
||||
@@ -598,4 +598,4 @@ int hexstr2ByteArr(const char *hexstr, unsigned char *array, size_t asize) {
|
||||
array[i >> 1] = (high << 4) | low;
|
||||
}
|
||||
return n >> 1;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user