J
jt
I need to produce 1 character array from 3 others. I tried sprintf and it
terminates on the first 0, null, 0x00 it sees in tmp data.
All 3 args print out nice by themselves.
By trying to make the character array(alerts.msg) with sprintf doesn't work
for the obvious reasons in my first sentence with tmp having those control
characters.
Is there another way to do this? To accomplish the same thing that sprintf
does but able to do having control characters in tmp?
sprintf( alerts.msg , "%04x%06x%s", htonl(alerts.len), listenip, tmp);
Thanks!
terminates on the first 0, null, 0x00 it sees in tmp data.
All 3 args print out nice by themselves.
By trying to make the character array(alerts.msg) with sprintf doesn't work
for the obvious reasons in my first sentence with tmp having those control
characters.
Is there another way to do this? To accomplish the same thing that sprintf
does but able to do having control characters in tmp?
sprintf( alerts.msg , "%04x%06x%s", htonl(alerts.len), listenip, tmp);
Thanks!