multiple inputs of multiple types
Im having trouble dealing with a program that takes multiple inputs (which can be a character, decimal, octal, hex) in any order. finding out if the input is a character or a digit.
When using argv it stores it as a string in a char array. I need to convert my input to a long or char depending on what it is. But I don't know the order, so i don't know what to expect. I trired using isalpha() but get Segmentation fault when executing.
If I knew what it was I could use strol(). Any ideas on how to deal with this??? Thank you.