Search:

Type: Posts; User: Zoetermeer

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    5,506

    so you added that loop directly after the call to...

    so you added that loop directly after the call to tokenize? i tried running it by adding those two lines and still got the garbled data in the array on the second iteration.
  2. Replies
    13
    Views
    5,506

    ok, here are the three files (i tried to attach...

    ok, here are the three files (i tried to attach the makefile but i think the site won't allow it). let me know if this works.

    around line 150, i have both the "actual" code (that passes in the...
  3. Replies
    13
    Views
    5,506

    I can do the same thing and everything works...

    I can do the same thing and everything works fine. This is crazy! In both cases, the array argument looks fine when I enter the function. But something else must be going on...can I send you the...
  4. Replies
    13
    Views
    5,506

    so you ran that fine on your machine? how could...

    so you ran that fine on your machine? how could that be? i ran this code on both a linux vm, and then on os x, and got the same result for both. assuming the array argument looks fine coming into...
  5. Replies
    13
    Views
    5,506

    sorry...forgot to take that line out. that's a...

    sorry...forgot to take that line out. that's a leftover char* from when i tried, on each iteration, to copy the contents of path[i] into a temporary string pointer. i thought that would prevent any...
  6. Replies
    13
    Views
    5,506

    I actually have one at the beginning of the...

    I actually have one at the beginning of the function, but I removed it before posting for brevity :)
    So yes, the paths array definitely looks okay at the beginning of the function.
  7. Replies
    13
    Views
    5,506

    Array Elements Overwritten

    I have the following function in a tiny C app. I basically take in an array of directory paths (the "paths" argument) and, for each path, iterate over each file in the directory and print the file...
Results 1 to 7 of 7