llvm-project/lldb/test/functionalities/process_launch/print_cwd.cpp

14 lines
226 B
C++

#include <stdio.h>
#include <unistd.h>
int
main (int argc, char **argv)
{
char buffer[1024];
fprintf(stdout, "stdout: %s\n", getcwd(buffer, 1024));
fprintf(stderr, "stderr: %s\n", getcwd(buffer, 1024));
return 0;
}