views:

13

answers:

0

Hello,

I need to create a char * which has the following layout:

length of username in network byte order (htonl) username length of password in network byte order (htonl) password 7 null characters (\0) length of the char * in network byte order (htonl)

Can someone provide some advise as to how to build up this char * concatenating the above into one char.

Thanks in advance.

---Guy