Krishanu Debnath <kr**************@gmail.com> wrote:
Probably you told us the opposite. Your function expects a char*
argument and you
are passing const char* actual. Use a explicit char* cast before
passing it to the function, thats the only option you have.(Assuming
you cannot change third party library function)
That's only advisable if the const char * actually points to
modifiable memory; if it does, it might be better off not being
declared const. If it does not (for example, if it points to a string
literal), and the third party function attempts to modify the string
it is passed, tragedy is the likely result.
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.