Re: Is casting away const OK for cygwin's execvp

2006-08-03 Thread Volker Quetschke
Volker Quetschke wrote: > Basically (see the attached example program) D'oh! I forgot the attachment. Volker -- PGP/GPG key (ID: 0x9F8A785D) available from wwwkeys.de.pgp.net key-fingerprint 550D F17E B082 A3E9 F913 9E53 3D35 C9BA 9F8A 785D #include #include #include #include using

Is casting away const OK for cygwin's execvp

2006-08-03 Thread Volker Quetschke
Hi I encountered this when writing some c++ program that uses execvp to start another process. Basically (see the attached example program) int execvp(const char *path, char * const *argv); the prototype of execvp() doesn't like constant char arrays for the second parameter, but that's what y