F
Filipe
Hi All,
I need to convert a char array to a char pointer.. it's urgente
someone could help me.. I'm using libnet and the parameter to the
function libnet_init is a char pointer...
My code:
char *device;
char str[20];
strcpy(str, "192.168.0.101");
device = str;
libnet_init(LIBNET_RAW4,
device, error);
It's don't works.. strcpy don't convert correctly??
Someone help me please
Thanks
Filipe
I need to convert a char array to a char pointer.. it's urgente
someone could help me.. I'm using libnet and the parameter to the
function libnet_init is a char pointer...
My code:
char *device;
char str[20];
strcpy(str, "192.168.0.101");
device = str;
libnet_init(LIBNET_RAW4,
device, error);
It's don't works.. strcpy don't convert correctly??
Someone help me please
Thanks
Filipe