I need to get the current path of my folder in linux, using c language, does anyone know how to do it?
I need to get the current path of my folder in linux, using c language, does anyone know how to do it?
To know where you are standing at the moment of execution, try with getcwd
this returns it to you, to use it you have to include lib #include <unistd.h>
. I hope it serves you, best regards.