summaryrefslogtreecommitdiffstats
path: root/config/getprogname-gnu.c
blob: 6b97c5ece74c03df032bc04811edb78b99b5ee3e (plain)
1
2
3
4
5
6
7
8
9
// Copyright © Tavian Barnes <tavianator@tavianator.com>
// SPDX-License-Identifier: 0BSD

#include <errno.h>

int main(void) {
	const char *str = program_invocation_short_name;
	return str[0];
}