Code:
char_t buffer[10];
somefunction(&buffer);
somefunction will be filling up the buffer with dataCode:
char_t* pbuffer;
pbuffer = (char_t*)malloc(10);
somefunction(pbuffer);
Is there any difference between the above 2? From what I understand there is no difference since both are passing a pointer to the function. Am I right?