J
Jimpolar
Well I have a design question in regards to using
const char * for data that I am not modifying
that I pass to a function.
Given this prototype:
int mvprintw(int y, int x, char *fmt [, arg] ...);
for the format string it wants the type pointer to char
but I have a wrapper around this function and the wrapper's
prototype for the format string is const char *
I don't really want to use char * because I am not modifying
the contents of the format string, ever.
Any suggestions on what I should do? seems the only solution
is to use char * for my wrapper but I could cast, however
this is even more revolting than just using char *.
=================================================================
My conviction comes down to this:
we do not create terrorism by
fighting the terrorists. We invite
terrorism by ignoring them. And we
will defeat the terrorists by
capturing and killing them abroad,
removing their safe havens and
strengthening new allies like Iraq
and Afghanistan in the fight we
share.
=== GW Bush, 2005
const char * for data that I am not modifying
that I pass to a function.
Given this prototype:
int mvprintw(int y, int x, char *fmt [, arg] ...);
for the format string it wants the type pointer to char
but I have a wrapper around this function and the wrapper's
prototype for the format string is const char *
I don't really want to use char * because I am not modifying
the contents of the format string, ever.
Any suggestions on what I should do? seems the only solution
is to use char * for my wrapper but I could cast, however
this is even more revolting than just using char *.
=================================================================
My conviction comes down to this:
we do not create terrorism by
fighting the terrorists. We invite
terrorism by ignoring them. And we
will defeat the terrorists by
capturing and killing them abroad,
removing their safe havens and
strengthening new allies like Iraq
and Afghanistan in the fight we
share.
=== GW Bush, 2005