Very simple question but within my code I have two char* variables.
char* port = "1100"; char* ip = inet_ntoa(((struct sockaddr_in *)&ifr.ifr_addr)->sin_addr); The first is a port number and the second tells the ip address of a given interface.
If I wanted to create a new variable say, char* both, why is it that I cannot say:
char* both = ip + port; with the output of 172.21.8.179 1100? How can I get a new variable with that output? Thanks