Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: willn

Search: Search took 0.01 seconds.

  1. Replies
    32
    Views
    1,981

    Re: Help with C simple loop.

    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...
  2. Replies
    32
    Views
    1,981

    Re: Help with C simple loop.

    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...
  3. Replies
    32
    Views
    1,981

    Re: Help with C simple loop.

    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...
  4. Replies
    32
    Views
    1,981

    Re: Help with C simple loop.

    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...
  5. Replies
    32
    Views
    1,981

    Re: Help with C simple loop.

    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...
  6. Replies
    32
    Views
    1,981

    Re: Help with C simple loop.

    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...
  7. Replies
    32
    Views
    1,981

    Re: Help with C simple loop.

    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>
    #include <socket.h>
    #include <netinet/in.h>
    #include <arpa/inet.h>
    #include <netdb.h>


    //Function to prompt user if they don't...
  8. Replies
    32
    Views
    1,981

    Re: Help with C simple loop.

    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...
  9. Replies
    32
    Views
    1,981

    Re: Help with C simple loop.

    This compiles with gcc, so I am not sure why it is letting me do it.
  10. Replies
    32
    Views
    1,981

    Re: Help with C simple loop.

    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...
  11. Replies
    32
    Views
    1,981

    Re: Help with C simple loop.

    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...
  12. Replies
    32
    Views
    1,981

    Re: Help with C simple loop.

    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.
  13. Replies
    32
    Views
    1,981

    Help with C simple loop.

    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...
Results 1 to 13 of 13


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center