AnsweredAssumed Answered

LPC1768 sscanf %hhu

Question asked by Giovanni Friolo on Feb 8, 2017
Latest reply on Feb 8, 2017 by Giovanni Friolo

I'm using LPCXpresso v8.2.2_650 to create application for LPC1768.

In my code I use sscanf to fill an unsigned char variable:


unsigned char u8arr[5];

sscanf(str, "%hhu", &u8arr[1]);


when executed the instruction above fill also u8arr[2].


Is there a bug in sscanf function?


Thank you in advance for reply