On Wed, Jan 26, 2005 at 08:45:09AM -0500, [EMAIL PROTECTED] wrote: > > The reason you are getting the references to void is the function prototype > for memcpy is: > > memcpy (void *dest, void *src, size_t n); > > You are passing char* pointers which are not void * pointers. You have to > correct your arguments > to remove the error messages. Please use man memcpy() for more details.
So I should use memcpy ((void *) *data_buf, (void *) bp, len) [len] = '\0'; (len is already type size_t) Or, I guess, to follow Ron's suggestion too: ((char*) memcpy ((void *) *data_buf, (void *) bp, len)) [len] = '\0'; Just curious as to what evil all of this extra typing is supposed to be protecting me from? - To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
