I want to call execve using my current set of environment variables.

From the manpage:

====
EXECVE(2)
int execve(const char *path, char *const argv[], char *const envp[]);

ENVIRON(7)
extern char **environ;

An array of strings called the ``environment'' is made available by
execve(2) when a process begins.
====

execve() wants   char *const envp[]
environ provides char **
environ is provided by execve from envp.

How do I pass the environment into execve without raising a compiler
warning about incompatible pointer types?

Ted

--
           There's a party in your skull.  And you're invited!

Name:    Ted Walther
Phone:   604-755-7732
Skype:   tederific
Email:   [email protected]
Address: 1755 246 St, LANGLEY BC  V2Z1G4

Reply via email to