search a string for a particular character and proper formatting
Posted on 2000-05-01
I have an item called Extrusion_TagNumber_F that is a string. What I need to do it make sure the first character is a T if so return non zero if it is not T then return 0.
I have another string called PartNumber and the 2nd char must be a - if so return non zero if it is not - then return 0.
String called Location and needs to be checked for formatting with a space after the first 2 characters if so return non zero if it is not a space then return 0.
BTW I am not a C programer so I am new to this.
Please submit as comments and I will accept the one I use as an answer.