The printf/fprintf/sprintf family supports
a width field in its format specifier. I have a doubt
for the case of (non-wide) char arrays arguments:
Is the width field supposed to mean bytes or ...
I have a UTF-8 string as a char*. In order to get the one byte per character property (and thus have random access into the string by character indexes) I currently ...
ok, i will extrapolate: i am getting an OBEX packet delivered over Bluetooth. one of the packet fields is 'file name' - in 2 byte unicode characters. the problem is the array received is a void * (such that casting it to a uint16_t gets me the wrong first element of the array) so i have to cast it to uint8_t. ...