Hi,
I am trying to compile my client code developed in C language. i am retrieving argv values for my server address and port name, but i get the following error."assignment makes integer from pointer without a cast".
my compiler is Solaris.
why do i get this error. please help
for example , the following lines returns the error
hostname = *argv[1];
data ="PING";
port =atoi(argv[2]);
I am trying to compile my client code developed in C language. i am retrieving argv values for my server address and port name, but i get the following error."assignment makes integer from pointer without a cast".
my compiler is Solaris.
why do i get this error. please help
for example , the following lines returns the error
hostname = *argv[1];
data ="PING";
port =atoi(argv[2]);