Search:

Type: Posts; User: ylph02

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    5,373

    Remove leading spaces/tabs

    How do I remove leading spaces from strings? My code
    for(j=0; command[j]==' ';j++);
    only seems to ignore them, when I printout the strings the spaces are still there.
  2. Thread: fgets

    by ylph02
    Replies
    1
    Views
    1,027

    fgets

    Fgets should read in sentences right? In my code I used
    if((fgets(sentence))==NULL);
    return NULL;
    but when I want to print the sentece out it comes out as word by word, each on a newline. How do...
  3. Replies
    1
    Views
    1,198

    Linked list; heelp

    How do I continue reading in input even if it encounters a space? Is it possible to get several sentences, save it in a linked list , then output it? In my program everytime a space is encountered,...
Results 1 to 3 of 3