| 4 | #include <unistd.h> |
| 5 | |
| 6 | int main(int argc, char **argv) |
| 7 | { |
| 8 | int i; |
| 9 | char path[1024] = {}; |
| 10 | |
| 11 | printf("Hello, world!\n"); |
| 12 | if (getcwd(path, sizeof(path))) |
| 13 | { |
| 14 | printf("cwd: %s\n", path); |
| 15 | } |
| 16 | else |
| 17 | { |
| 18 | printf("fail to get cwd\n"); |
| 19 | } |
| 20 | |
| 21 | printf("argc: %d\n", argc); |
| 22 | for(i=0; i<argc; ++i) |
| 23 | printf("argv[%d]: %s\n", i, argv[i]); |
| 24 | |
| 25 | return 10; |
| 26 | } |
nothing calls this directly
no outgoing calls
no test coverage detected