|
/***************************************************************************
main.c - description
-------------------
begin : Mon Feb 17 11:34:00 CST 2003
copyright : (C) 2003 by lzh08
email : lzh08@sohu.com
***************************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/wait.h>
#define MYPORT 1490
#define BACKLOG 10
int main()
{
printf("Hello, world!\n");
unsigned char flag;
struct sockaddr_in serveraddr;
if (inet_aton("192.168.0.1",&(serveraddr.sin_addr)) == 1)
flag = 1;
else
flag = 2;
printf("%d",&(serveraddr.sin_addr.s_addr));
return EXIT_SUCCESS;
}
main.c:41: warning: implicit declaration of function `inet_aton'
main.c:46: warning: int format, pointer arg (arg 2)
what it means?help me ! |
|