FILE *t;
t = fopen(argv[8], "r");
fgets(tmp, 2048, t);
What I am reading at each line is something like this "l 23 23" a letter and some numbers (int or float) depending on weather "l" is "a" "b" or "c".
I've tried but couldn't compare tmp[0] with a letter.
tmp[0] =="t"
I know for sure "t" is present in the file but it always gives false.
How do I compare it and also extract the numbers that follow?
PS: I know how many number and what type to expect at each line depending on the value of tmp[0].
't', not"t"(single-quotes, not double).