• 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...
  • sscanf function problem
    hello friend i am useing sscanf function in my program. the valid packet recived from the serial port using the intrupt . here i am getting the string in RxBuf using intr and main() { sscanf(&RxBuf...
  • 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",...