J
jt
Here is my code:
unsigned long listenip;
short tlen;
sprintf(tmp,"len:%x listenip:%x",htonl(tlen),listenip);
If the value on "tlen" is less than 2 bytes and the value on "listenip" is
less than 4 bytes, how can I make it fill with preciding 0 zeros?
Thanks,
JT
unsigned long listenip;
short tlen;
sprintf(tmp,"len:%x listenip:%x",htonl(tlen),listenip);
If the value on "tlen" is less than 2 bytes and the value on "listenip" is
less than 4 bytes, how can I make it fill with preciding 0 zeros?
Thanks,
JT