Type: Posts; User: willn
Search took 0.00 seconds.
April 9th, 2013, 03:24 PM
GCDEF, you are da man! I guess I just don't have the critical thinking to be able to handle some of this. That solution worked. I think that will do it. I know if I want to know best practices or any...
April 9th, 2013, 03:01 PM
As far as the more than 512 bytes, for what I am doing in this program and knowing that arrays cannot be dynamic in nature for 'C', I think my best bet is to just control the data that is in that...
April 9th, 2013, 11:58 AM
I think I finally got it!!! Thanks to you guys' help! The answer was the strcpy() function. One other question though, why can't I use a dynamic array with strcpy()? In the final code, I get an error...
April 9th, 2013, 10:33 AM
What can I use instead of strtok() because I will need to call this function multiple times to make sure that the server is still up and if not, move to the next one in the list, so dealing with a...
April 9th, 2013, 09:33 AM
I changed the return to a NULL in the function and that line 'if (getServer(svrList) != "0")' to 'if (getServer(svrList) != NULL)' and it made no difference on the output. I do thank you for helping...
April 9th, 2013, 09:14 AM
So, the function is working like I want it to. When I run it by itself or output the result of the function to a printf, it has the correct return value. Where the problem comes in is when I call the...
April 8th, 2013, 11:57 PM
//Function to prompt user if they don't...
April 8th, 2013, 11:40 PM
OK, I am sorry, I see what you are saying. I am in the process of debugging, but since I am in windows, I cannot find a good debugger that will work well. I have visual studio, but it does not...
April 8th, 2013, 11:18 PM
This compiles with gcc, so I am not sure why it is letting me do it.
April 8th, 2013, 11:15 PM
OK, so in looking at the memset function again, according to this website, it would fill the array with 0's like I said, so I am stumped.http://www.elook.org/programming/c/memset.html I don't think I...
April 8th, 2013, 10:46 PM
Well, ideally, I was trying to return just the first address that responds and then quit the function with a return value for the IP of the server that succeeded. If it didn't, then continue the loop...
April 8th, 2013, 10:32 PM
I thought I would need this to return the first value in srList that succeeds. Is that not the case? As far as the memset function, I thought I needed this as part of iterating through the array.
April 8th, 2013, 09:25 PM
Hey guys, I am trying to write a loop that will iterate through a char array in C and pull the IP addresses and test them to see if hthey respond. My ultimate goal is to have the first one that...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.