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" <email@example.com> 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 08:26 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.