new to C

This is a discussion on new to C within the C Programming forums, part of the General Programming Boards category; I learnt Java for 2 semesters at uni last year and now I have to do C and I have ...

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    3

    new to C

    I learnt Java for 2 semesters at uni last year and now I have to do C and I have to make a spam filter for email

    can anyone tell me how to do the equivalent of "StringTokenizer" in C??

    thanks

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >can anyone tell me how to do the equivalent of "StringTokenizer" in C??
    Looking up strtok in the string.h header would be a good start.
    My best code is written with the delete key.

  3. #3
    c99
    c99 is offline
    Registered User
    Join Date
    Feb 2004
    Posts
    79
    #include <string.h> strtok()

    http://www-ccs.ucsd.edu/c/string.html#strtok
    R.I.P C89

  4. #4
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,528
    ok, I know this is not on subject, but I could not resist - I had to laugh when I saw your name 'tosspot' - too funny. lol


  5. #5
    Registered User
    Join Date
    Mar 2004
    Posts
    3
    tosspot.....look it up in the dictionary

    heavy drinker it says so is that y u were laughing??

  6. #6
    Registered User
    Join Date
    Mar 2004
    Posts
    3
    oh and my program closes as soon as it has finished doin wot it has to without me being able to see the output is there a way to stop this??

    thanks for the last answers

  7. #7
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21