Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

help - code with assembling pkt c++

Avatar of rt2001
rt2001Flag for India asked on
7 Comments1 Solution232 ViewsLast Modified:

I would like to get some help with a problem, please.

I need to write a method that would assemble a buffer of say 14 bytes ( a packet) in which I need to assemble side by side a uint8 value1, a string value1_name, a uint8 value2,  and contents of a file whose pointer and size are given.

the buffer location must be compiler allocated. The parameters value1_name, file ptr, size and value1 are passed to the function.

What would be the best way to write this?

Thank you in advance.
Avatar of Infinity08
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answers