no, a strcmp() of "I 6" and "I" won't work since they don't match. Consider comparing 'c' to I, such that
Also add some error checking to sscanf(), Hint: It returns the amount of 'parameters' it was able to read.Code:if(c == 'I') { /* blah */
no, a strcmp() of "I 6" and "I" won't work since they don't match. Consider comparing 'c' to I, such that
Also add some error checking to sscanf(), Hint: It returns the amount of 'parameters' it was able to read.Code:if(c == 'I') { /* blah */