12.26

    1. struct hostent *gethostbyname(const char *name)
    2. struct hostent {
    3. char *h_name;
    4. char **h_aliases;
    5. int h_addrtype;
    6. int h_length;
    7. char **h_addr_list;
    8. }

    copy int, copy char, copy char* in struct hostent are 3 different ways.

    1. !INCLUDE "./code/12.26.c"