My instructions are pretty clear, but I'm doing it wrong, can you help correct my error?
Instructions: else if (“pwd”) declare a char variable array of size MAX_PATH_LENGTH to hold the path do a getcwd print the path
my code:
}else if(strcmp(argv[0],"pwd")){
char arr[MAX_PATH_LENGTH];
char getcwd(arr,MAX_PATH_LENGTH);
printf("cwd: %s",arr);