Basically I need an if statement of which the response is dependent upon the current working directory.
I have done some research on the topic and I believe that the getcwd()
function is what I am looking for, but I can't figure out how to interface with it in an if statement.
I am new to C, and the program I am making needs to be located on the Desktop (btw its a UNIX system) for it to run properly and the if statement needs to determine whether it is located on said desktop or not.