I need to build a function, my input is a char *string and I'll need to get the "same representation" but in a uint16.
For example:
input: "12" --> output: 0x0012
input: "0" --> output: 0x0000
input "123" --> output: 0x0123
input "1234" --> output: 0x1234
PD: I can't use "official functions" such as strtol, sscanf...