Search:

Type: Posts; User: Kazansky

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,032

    This should be: if(x == 0) Remember...

    This should be:



    if(x == 0)


    Remember "=" is for assignment, it's setting 'x' to zero, == is for comparisons.
  2. Replies
    2
    Views
    1,340

    Quick question, why do you malloc() constant...

    Quick question, why do you malloc() constant strings? Why not just create them normally?
  3. Replies
    20
    Views
    2,536

    I'm still looking at your original code and I can...

    I'm still looking at your original code and I can see you're having trouble with variable scope. Variables created inside a function are internal to that function, when the function ends so do the...
  4. Replies
    20
    Views
    2,536

    What doesn't? Also what's going on on line 76?...

    What doesn't?

    Also what's going on on line 76? Are you trying to print the values or the addresses? "%ld" as you have it is for long integers, not doubles or pointers.
  5. Replies
    20
    Views
    2,536

    Still going through the code, on line 66 you have...

    Still going through the code, on line 66 you have



    *p_walker = number;


    This is invalid, if you want p_walker to point to the value of number it would be like:
  6. Replies
    20
    Views
    2,536

    As stdq said, I was logically going through the...

    As stdq said, I was logically going through the program and it just loops, at line 63 you try and get a number by calling the getNum function which you're already in, it then asks for a number and...
  7. Replies
    20
    Views
    2,536

    Have you actually got this working before? From...

    Have you actually got this working before? From what I'm reading this doesn't make any sense.
  8. Replies
    9
    Views
    2,687

    So yeah, I found out I can do what I want with...

    So yeah, I found out I can do what I want with "libcurl", apparently it was made specifically for this purpose... That's a little embarrassing :rolleyes:, on one hand I spent like three days trying...
  9. Replies
    9
    Views
    2,687

    Here's the updated code, not finished. Turns out...

    Here's the updated code, not finished. Turns out it wasn't the function return that's causing it, it's somewhere between "Main Path 1" and "Main Path 2" where it changes though it's not even called...
  10. Replies
    9
    Views
    2,687

    This is pretty neat, it's a lot nicer than my old...

    This is pretty neat, it's a lot nicer than my old method.



    I will.

    One small problem here in my get_path() function (same as I had before), I believe it has something to do with returning...
  11. Replies
    9
    Views
    2,687

    This is the type of stuff I'm looking for. It's...

    This is the type of stuff I'm looking for. It's so obvious now that you mention it, my brain was so wrapped up in trying to get the socket working that stuff like this flies right by me, I've been...
  12. Replies
    9
    Views
    2,687

    Linux Socket Nightmare

    I'm out of ideas, I've been trying to get this whole socket thing working for a couple days now and I haven't even made it passed the basics. It seems the recv() function outputs garbage data in the...
Results 1 to 12 of 12