Search:

Type: Posts; User: mc72

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    9,740

    The above code doesn't seem to work for me. Also...

    The above code doesn't seem to work for me. Also as you mentioned, it seems to be checking for all white space in the string, not just leading white space.

    In my code, *pp is a char*(a string)...
  2. Replies
    5
    Views
    9,740

    This is for a homework assignment. I guess I...

    This is for a homework assignment. I guess I should explain the whole assignment. We input any number of text files and fgets to store to one large array of strings, line by line, dynamically...
  3. Replies
    5
    Views
    9,740

    compare function ignoring leading white space

    Hi there,

    I'm trying to write a compare function to be used in a qsort of a large array of strings.

    It has to compare, but ignore the leading white space, and only the leading white space.
    ...
  4. Thread: array of strings?

    by mc72
    Replies
    5
    Views
    2,646

    Thank you for your help tabstop. That makes...

    Thank you for your help tabstop. That makes perfect sense that I've already done the work with argv to store to an array of strings. Sorry, I am definitely a novice at this stuff. I have some...
  5. Thread: array of strings?

    by mc72
    Replies
    5
    Views
    2,646

    Sorry, I guess I should have just posted the...

    Sorry, I guess I should have just posted the whole thing. Oh, and I should mention this is a homework assignment.

    What I'm doing with i is looping through the command line first to get the...
  6. Thread: array of strings?

    by mc72
    Replies
    5
    Views
    2,646

    array of strings?

    Hi there,

    I'm trying to pass in an array of strings to a function and am obviously having trouble with the basic idea behind storing strings to an array of strings.

    I have a prototype something...
Results 1 to 6 of 6