I have a piece of code that use gethostbyname() function, which is defined this way:
struct hostent *gethostbyname(const char *name);
My question is very simple, is it possible to directly put the char value like this :
gethostbyname("10.11.22.4");
or do I have to do it like:
char *tab[10];
gethostbyname(*tab);
or, is it another way ?
Thanks