#include #include #include #include #include #include "test_helpers.h" int main(void) { char first[PATH_MAX] = { 0 }; getcwd(first, PATH_MAX); puts(first); char* second = getcwd(NULL, 0); puts(second); if (strcmp(first, second)) { puts("Not matching"); free(second); exit(EXIT_FAILURE); } free(second); }