End Google Ads 201810 - BS.net 01 --> I understand now that the data I receive from a socket is a byte array.

But I don't understand how to pass the byte array to a function for further processing. Plus I'm not sure if I should leave it as a byte array, or try to convert it to a string, so I can extract data from it. I'm confused as to whether this buffer is a pointer to data somewhere else, and If I need to make a copy of it, before passing it to a function. When I pass it to a function, the data is lost.

Kind of tired of going around in circles here on this, and I need road map to head in the right direction.

I make my receive buffer
char recvbuf[256];

I get data
0x05 '' 0x54 'T' 0x53 'S' 0x65 'e'

And I try to pass it to a function for processing. Unless just extracting the info I need does not require a function. Suggestion?

void _process(char *pbuffer)
{
}