How to show my path in linux, but using c [closed] language

-1

I need to get the current path of my folder in linux, using c language, does anyone know how to do it?

    
asked by Yeison Fuentes 10.05.2018 в 21:46
source

1 answer

1

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.

    
answered by 10.05.2018 / 22:00
source