Search:

Type: Posts; User: jchanwh

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    24,516

    you are the man! many thanks

    you are the man! many thanks
  2. Replies
    2
    Views
    24,516

    scanf delimiter problem

    Hi there,

    I wrote the following code, what I intend to do is to use '!' as delimiter to save string to different variables, however, I found that all the characters include '!' save to first...
  3. Replies
    1
    Views
    1,639

    gethostbyname()

    Please advise why the following code is not working(Segmentation fault). Merry Chirstmas!

    #include <stdio.h>
    #include <netdb.h>

    main() {

    struct hostent *h;
    char *output1;
    char *input;
  4. Thread: ip or hostname

    by jchanwh
    Replies
    2
    Views
    1,485

    ip or hostname

    Hi there,

    Any idea on if a valid IP address is entered, the corresponding host name is returned and if a hostname is entered, the corresponding IP address is returned. Thanks in advance.

    Johnny
  5. Replies
    2
    Views
    4,169

    Loop until enter correct value

    Hi there,

    I would like to let the following code keep asking for correct value if the value enter cannot vaildate by myvaild_addr(). Could you give me some hint to make it work. Thanks in advance....
Results 1 to 5 of 5