Hi.
This function should be so easy but still I can't get the result:
unsigned char readBuf[20]={0};
char String[20]={0};
Scan (String, "%s>%16x[b1w2]", readBuf);
String=d21c9000d21c9000;
Why the result is this:
readBuf[0]=d2,readBuf[1]=1c,readBuf[2]=90,readBuf[3]=00,readBuf[4]=00,readBuf[5]=00,readBuf[6]=00,readBuf[7]=00
I expected this result:
readBuf[0]=d2,readBuf[1]=1c,readBuf[2]=90,readBuf[3]=00,readBuf[4]=d2,readBuf[5]=1c,readBuf[6]=90,readBuf[7]=00
Thanks.