Hi there....\n\n

Suppose we have a pointer if void type which we use then to allocate memory and create a buffer....

the buffer ,lets say has at first a string of 10 chars then a float and then and integer....


How I can access and print the fields of it?

My thought was to use a second pointer and allocate memory to him so it can hold the proper field and then copy on him the data but it does not work....


Whats wrong?

I thank "apriori" anyone for his good mood of helping me....