reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #include <stdio.h> #ifdef _MSC_VER #define _CRT_NONSTDC_NO_WARNINGS #include <direct.h> #undef getcwd #define getcwd(buffer, length) _getcwd(buffer, length) #else #include <unistd.h> #endif 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; } |