Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: randi
  • Order by date
  1. randi

    Validate formatted input from a file?

    Can anyone recommend the best way to validate text input from an ascii file? Each line of my input file is expected to be: Some Text \t Some Text \t Some Text\n However, if the program encounters a line with only whitespace, an exception is raised. Here is a code snippet (without any...
  2. randi

    Delete characters in a string?

    Yes this absolutely worked. Thanks a lot for generously writing out that code for me. For anyone also using this, do these 2 minor tweaks. (1) comment out the parenthesis with a backslash (my_string[q]=='\)') (2) the inner loop constraint is just w<strlen(my_sting); I went to uiuc too. :)...
  3. randi

    Delete characters in a string?

    I'm trying to delete all instances of . , ' ( ) in a string char *mystring I'm not sure how to do this - the compiler won't let me substitute with an empy string. (i.e., mystring[0] = ''; doesn't work). Is tokenization and concatenation the way to go or is there a simpler function I am...

Part and Inventory Search

Back
Top