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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by mjosborne

  1. mjosborne

    General purpose string substitute function anyone?

    Figured it out myself.... char *sub_line( char *str, char *find, char *repl) { char *ptok; char *new = NULL; char *theRest = NULL; int got_token = 0; int posn=0; new = (char *) malloc(MAX_LINE); if (str == NULL) { return(str); } strcpy(new,str); ptok =...
  2. mjosborne

    General purpose string substitute function anyone?

    Hi, Does anyone have a general purpose C string substitute function . I have tried it with strtok but failed. The function could be of the form char *sub_string(char *the_string, char *find, char *replace); returning a string with the substitution of find for replace. eg. char *str =...
  3. mjosborne

    TGML tags and CSS definitions

    The text appears as 10pt Courier of some sort on my browser (IE6.1)

Part and Inventory Search

Back
Top