Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

High Performance Computing Assignment

Project: HPC
Views: 171
1
#include <stdio.h>
2
#include <unistd.h>
3
#include <errno.h>
4
5
void 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