#include
#include
#include
#include
#include
int main(int argc, char **argv) {
// Declare any variables you need
// Write the code to loop over the command line arguments.
// (Remember to skip the executable name.)
for (int i = 1; i < argc; i++) {
// call fork
if () { // system call error
// handle the error
} else if () { // child process
// child does their work here
}
}
// Finish the code to sum up the return values from the children
printf("The length of all the args is %d\n",sum);
return 0;
}