diff options
| author | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2012-06-17 21:15:12 +0000 |
|---|---|---|
| committer | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2012-06-17 21:15:12 +0000 |
| commit | 8df9466ada46e4b07990b9cb7e8b1cd61b96844a (patch) | |
| tree | 2cb652e5839bed672133ffa90e7ad477f55cfb6b /tests/test_addrconv.c | |
| download | pica-pica-8df9466ada46e4b07990b9cb7e8b1cd61b96844a.tar.gz pica-pica-8df9466ada46e4b07990b9cb7e8b1cd61b96844a.zip | |
todo list update
git-svn-id: svn://localhost/project_picapica/trunk@128 fb96df88-216d-11de-830c-f3023f12d8ac
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 |
