Is Cygwin supposed to know _get_pgmptr?
- Date: Mon, 11 Feb 2019 12:08:40 -0500
- From: Jeffrey Walton <noloader@xxxxxxxxx>
- Subject: Is Cygwin supposed to know _get_pgmptr?
I have some code that looks like so:
char* pgmptr = NULLPTR;
errno_t err = _get_pgmptr(&pgmptr);
if (err == 0 && pgmptr != NULLPTR)
exePath = pgmptr;
The code gets the full path of the executable. It sidsteps some
problems with finding the full path of an executable. Posix realpath
is a little messier and has some inherent problem with path lengths.
The code fails to compile with Cygwin.
I am wondering if the failure is expected.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple