If I have the following example
functionTest is as belowCode:char_t* pbuffer; pbuffer = (char_t*)malloc(10); functionTest(pbuffer);
my question is for the memcpy function, is it correct that i pass just the pbuffer in?Code:void functionTest(char_t* pbuffer) { char_t cbuffer[10]; memcpy(pbuffer, cbuffer,10); }
or do i pass *pbuffer?
My interpretation is that i should pass only "pbuffer" in as it is already a pointer itself.