I'm trying to use execvp which has the prototype:
int execvp( const char *file, char *const argv[]);
I'm using a C++ style string to get input from the user. How can I convert this C++ style string into something that execvp can use?
This is a discussion on converting a c++ style string into something execvp can use for args. within the Linux Programming forums, part of the Platform Specific Boards category; I'm trying to use execvp which has the prototype: int execvp( const char *file, char *const argv[]); I'm using a ...
I'm trying to use execvp which has the prototype:
int execvp( const char *file, char *const argv[]);
I'm using a C++ style string to get input from the user. How can I convert this C++ style string into something that execvp can use?
haven't I seen this post before? Just use myString.c_str() to convert to a const char *