summary refs log tree commit diff
path: root/compat/getprogname_windows.c
blob: eb04ec0551b5b8d07abe7ca06412d29c39929367 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdlib.h>

#include <windows.h>

const char *
getprogname(void)
{
	static char progname[MAX_PATH + 1];
	DWORD length = GetModuleFileName(NULL, progname, sizeof (progname) - 1);
	if (length < 0)
		return "?";
	return progname;
}
/span>Cast set but unused variables to voidJune McEnroe 2020-02-11Declare strlcatJune McEnroe 2020-02-11Check if VDSUSP existsJune McEnroe 2020-02-11Fix completeReplace iterationJune McEnroe 2020-02-11Use pkg(8) to configure on FreeBSDJune McEnroe 2020-02-11Remove legacy codeJune McEnroe 2020-02-11Add INSTALLING section to READMEJune McEnroe