Skip to content

Instantly share code, notes, and snippets.

@injust90
Created September 23, 2022 23:23
Show Gist options
  • Save injust90/6597c14e839951fc3a17376880432e20 to your computer and use it in GitHub Desktop.
Save injust90/6597c14e839951fc3a17376880432e20 to your computer and use it in GitHub Desktop.
Used to print the working directory
void PrintFullPath(const char* partialPath)
{
char full[_MAX_PATH];
if (_fullpath (full, partialPath, _MAX_PATH) != NULL)
printf("Full path is %s\n", full);
else
printf("Invalid path\n" );
}
int main()
{
PrintFullPath("");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment