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

#include <stdlib.h>

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