There's an error in your logic in the if statement of your convertChar() function. You should check the documentation for the strcmp() function and understand its return values, it has 3 different: greater than zero, less than zero, and zero. Also remember how the the if statement is decided, one you understand all these you'll find your mistake.
Other function that you may use instead of strcmp() and a sequential search, is strchr().









Forum


)so I don't remember about the exam, but I have that same impression when reading the material provided by EC-Council, sometimes it's misleading/confusing

Tutorials : Backtrack Quiz



