• sscanf problem
    i am reciving the gps packet for serial port and written code like as below. rxbuf[100]="081417.138,A,1728.6091,N,07833.8230,E,0.00,49.52,280306,,,A*5E"; main() { sscanf(&RxBuf[0],"%lf,%c,%lf,%c...
  • sscanf problems
    I'm trying to compile a C C51 based program using Keil compiler, v 7.04. sscanf works properly using the emulator, but hangs when running the application on the C51 based processor. Is there any...
  • Problem using sscanf with \0
    hello, I'm creating a parser to parse through data from UART. I managed to get it working with VS code and gcc but had a hard time implementing it in my initial keil project. Here's my code: ...
  • The 'sscanf' mistake
    sscanf(buffer, "%d", &var1_1byte); in the above case, var1_1byte is uint8_t (ie 1 byte char variable). the "%d" in sscanf resulted to writing of multiple bytes (notice that '%d' is for 'int') which...
  • sscanf does not work properly
    I started to use the sscanf function to parse commands from serial port and found out that it does not work as it must do. Example: int i, j = 0x1234; char c = '\0'; i = sscanf("anything", "%d%c",...