Search:

Type: Posts; User: Smithy

Search: Search took 0.01 seconds.

  1. Thread: strtok

    by Smithy
    Replies
    6
    Views
    3,757

    like i just want the maximum word length to be 9....

    like i just want the maximum word length to be 9. And i meant in the main function i have char *buffer = NULL and then i pass that into the splitString. Well in my first post i have it called char...
  2. Thread: strtok

    by Smithy
    Replies
    6
    Views
    3,757

    ok. but how do i make sure that a word is not...

    ok. but how do i make sure that a word is not over 9 chars, and if it is, print it on a new line as a seperate word. ie fantastable, prints, fantastab and le. Just a simple if statement? Also this...
  3. Thread: strtok

    by Smithy
    Replies
    6
    Views
    3,757

    so i need to get the strings in from the file...

    so i need to get the strings in from the file using fgets? And each word can only be 9 chars long. How do i incorporate that. Like I get what that's doing, its just going through until it hits a...
  4. Thread: strtok

    by Smithy
    Replies
    6
    Views
    3,757

    strtok

    Hi there. Im trying to extract words from a file and print them out one by one. Eg if the file contained "The flying machine" it will print to stdout on separate lines,
    "The"
    "flying"
    "machine"...
Results 1 to 4 of 4