I just need with it...
collect id[i] with i from 0 to 3 and separated "."(point) and print it stuff
str = id[0].id[1].id[2].id[3];
printf("%u",p->srt);
how to doing it format?
Then you need to print it as a string (%s), not as an unsigned (%u).
No, because I've at least 16 chars, therefore I need use long type such as unsigned...
unsigned char id[4];
unsigned char str;
What's function can take unsigned char and return unsigned char?
Hm, possible I do a mistake. Because function ntohs would be return int, I need something what can be returned unsigned char or just char. strcat( p->str, itoa( id[i] ) );
Or what's function I can use without strcat, because if I tried use itoa I've got that"undefined reference to `itoa'", but it defined on <stdlib.h>