I know that you can get the current working directory by using getcwd or getdcwd. It there a way to get the current working filename and store it into a char array?
I know that you can get the current working directory by using getcwd or getdcwd. It there a way to get the current working filename and store it into a char array?
if you use
argv[0] should contain the filenameCode:int main(int argc, char *argv[] )