what specific aspect are you stuck on? and please don't say the whole thing.
Type: Posts; User: JRoosh
what specific aspect are you stuck on? and please don't say the whole thing.
you might need #include <string.h>
also you need to declare the variable 'string' if you haven't already, char sintrg[ 10 ] = "thestring";
edit: sorry, i misread your original post. i don't believe you can capture a pid started through a call to system().
then again, on a Unix system you can make a system() call to "ps -aux", capture...
a call by value passes only the-value-of a variable, while a call by reference passes a reference (address usually) to a variable so that it's value can be altered
fyi: no-one's code is actually right. in this case char **argv and char *argv[] accomplish the same thing. char* argv[] just means an array of character pointers, each pointer being the base address...