This should be:
if(x == 0)
Remember "=" is for assignment, it's setting 'x' to zero, == is for comparisons.
Type: Posts; User: Kazansky
This should be:
if(x == 0)
Remember "=" is for assignment, it's setting 'x' to zero, == is for comparisons.
Quick question, why do you malloc() constant strings? Why not just create them normally?
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...
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.
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:
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...
Have you actually got this working before? From what I'm reading this doesn't make any sense.
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...
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...
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...
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...
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...