Welcome, Guest. Please login or register.

Author Topic: sizeof (*VarPtr) possible ?  (Read 5335 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline thegman

  • Newbie
  • *
  • Join Date: Jan 2007
  • Posts: 14
    • Show all replies
Re: sizeof (*VarPtr) possible ?
« on: January 30, 2007, 06:36:23 PM »
Could you try passing the value at the address of the pointer? i.e. rather than:

char * mypointer;
sizeof(mypointer);

Which would only give you size of a pointer.

do:

sizeof(* mypointer);

Should give the size of the type to which the pointer is pointing at, as it were.