Typecasting char pointer to structure
I need to convert Char Pointer to a Structure.How Can i typecast this.
thanks in advance
Re: Typecasting char pointer to structure
"venkatesh" <firstname.lastname@example.org> wrote in message
> Hi Members,
> I need to convert Char Pointer to a Structure.How Can i typecast
> thanks in advance
int a, b, c;
// C++ casting
pstruct = reinterpret_cast<MyStruct *>(ptr);
// or C style casting:
pstruct = (MyStruct *)ptr;
|All times are GMT. The time now is 07:17 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.