This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Type conversion from type Elf32_Ehdr to type const char
- From: "Edwin Chan/Toronto/IBM" <edwinc at ca dot ibm dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 12 Jun 2002 14:37:59 -0400
- Subject: Type conversion from type Elf32_Ehdr to type const char
Hi,
I would like to know how to convert from type Elf32_Ehdr to type const char
Here are some things I tried, but they all failed.
ex.
Elf32_Ehdr Ehdr;
const char tmp = static_cast<const char>(Ehdr);
ex
Elf32_Ehdr Ehdr;
const char tmp = const_cast<const char>(Ehdr);
ex
Elf32_Ehdr Ehdr;
const char tmp = (const char)Ehdr;
ex
Elf32_Ehdr Ehdr;
char tmp = (char)Ehdr;