I want to parse from a file that has the following format (it may change) the number that is after t= (e.g 19625):
3a 01 4b 46 7f ff 06 10 42 : crc=42 YES\n
3a 01 4b 46 7f ff 06 10 42 t=19625
int t;
fp=fopen("text","r");
fscanf(fp,"t=%d",&t);
fclose(fp);
printf("%d\n",t);
does not give the output.. Any suggestions?