High Performance Computing Assignment
1#include <stdio.h> 2#include <unistd.h> 3#include <errno.h> 4 5void pwdCommand(void) 6{ 7 char c; 8 9 if(getcwd(c, sizeof(c)) == NULL) 10 { 11 perror("ERROR"); 12 } 13 else 14 { 15 printf("%s\n", c); 16 } 17} 18