This repo will contain various unix command implementation in c language
This file is an implementation of pwd command of linux in C language
In header file #include<unistd.h>
Defination of getcwd system call is given whose function is to copies an absolute pathname of the current working directory to the array pointed to by buf, which is of length size.
Its signature is char *getcwd(char *buf, size_t size); It return null if the buffer size is less than the size of the current working directory therefore this error should be check.
We can use the system call pathconf declare in unistd.h header for giving path of the
directory which contain _PC_PATH_MAX which have maximum length of a filename in the directory path.(for more detail refer man 3 pathconf)