topical media & game development
professional-program-12-Casts-ConstCast.c
? /
professional-program-12-Casts-ConstCast.c
void g(char* str)
{
// function body omitted for brevity
}
void f(const char* str)
{
// function body omitted for brevity
g(const_cast<char*>(str));
// function body omitted for brevity
}
int main(int argc, char** argv)
{
char str[100];
f(str);
return (0);
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.