add "hex+text" input

This commit is contained in:
Edward Emelianov
2026-03-14 23:44:54 +03:00
parent 57a44f1c66
commit 27eb723d80
5 changed files with 87 additions and 17 deletions

View File

@@ -147,7 +147,8 @@ static const char *getdec(const char *buf, uint32_t *N){
return buf;
}
// read hexadecimal number (without 0x prefix!)
static const char *gethex(const char *buf, uint32_t *N){
const char *gethex(const char *buf, uint32_t *N){
if(!buf || !N) return NULL;
const char *start = buf;
uint32_t num = 0;
while(*buf){