How to get the absolute path for a given relative path programmatically in Linux?
Incase of Windows we have the _fullpath() API. In other words, I mean
_fullpath()
There is the realpath from stdlib.h
stdlib.h