My question is about if I should return char* or have a char* as an
argument. My basic premise for this function is to return a char*
buffer and the size of the buffer to the caller. I know that each of
the following works but Stylistic which would be the better approach.
Here are my two examples:
char* GetBuffer(long* size);
or
void GetBuffer(char* buff, long* size);
Thanks
Danny
argument. My basic premise for this function is to return a char*
buffer and the size of the buffer to the caller. I know that each of
the following works but Stylistic which would be the better approach.
Here are my two examples:
char* GetBuffer(long* size);
or
void GetBuffer(char* buff, long* size);
Thanks
Danny
Comment