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?
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 *