Jump to content

Two For The Price Of One

Recommended Posts

Hi Pavel,


boostc v7.01




#include <system.h>

#include <memory.h>


typedef struct {

char c;

} TTestStruct;


void InitNodeBuffer(TTestStruct *Node)


//error: arguments of 'memset8' don't match the parameters of call

//I didn't think it should be necessary to cast Node to void* here ?

memset(Node, 0, sizeof(TTestStruct));


memset((void*)Node, 0, sizeof(*Node)); //error: can't get size of the expression


memset((void*)Node, 0, sizeof(TTestStruct)); //Compiles OK






Andy Leiper


Link to post
Share on other sites
  • 2 weeks later...

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...