diff options
Diffstat (limited to 'tests/test_addrconv.c')
| -rw-r--r-- | tests/test_addrconv.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/test_addrconv.c b/tests/test_addrconv.c new file mode 100644 index 0000000..a5e4a15 --- /dev/null +++ b/tests/test_addrconv.c @@ -0,0 +1,23 @@ +#include <sys/types.h> +#include <sys/socket.h> +#include <netinet/in.h> +#include <arpa/inet.h> + + +#include <stdio.h> + +int main() +{ +int ret; +char buf[256]; + + +gets(buf); + + +ret=inet_aton(buf,(struct in_addr*)(buf+128)); + +printf("inet_aton()=%i\n",ret); + +return 0; +}
\ No newline at end of file |
