From: Niklas_Pson AT nosmam DOT hotmail DOT com (Niklas Pettersson) Newsgroups: comp.os.msdos.djgpp Subject: Re: char*[] -> const char** conversion Date: 31 Jul 2001 17:16:31 GMT Organization: Lund Institute of Technology, Sweden Lines: 14 Message-ID: <90EFCD60BNiklasPsonnospamhotm@130.235.20.4> References: NNTP-Posting-Host: npedt97.univ.vxu.se User-Agent: Xnews/03.04.11 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com djgpp AT delorie DOT com (Eli Zaretskii) wrote in >I think this is a standard issue with C++: const char and char are not >the same, and you aren't allowed to mix them. Even C compilers print >warnings about that nowadays. > Hm..Eli is right about that const char and char are different types in C++ but I think that the code given should work.. Const char * in the function prototype just says that the function cannot change the parameter, but a non const char can still be passed as an actual parameter. But the otherway around is an error of course.. / Niklas