Hello,
Do anybody know, how could I get an absolute path? I tried this, but I have strange results...
Code:#include <stdio.h> #include <unistd.h> #include <string.h> int main(int argc, char *argv) { char the_path[256]; getcwd(the_path, 255); strcat(the_path, "/"); strcat(the_path, argv[0]); printf("%s\n", the_path); return 0; }