Created
September 23, 2022 23:23
-
-
Save injust90/6597c14e839951fc3a17376880432e20 to your computer and use it in GitHub Desktop.
Used to print the working directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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