Merge from vendor branch BZIP:
[dragonfly.git] / lib / libc / gen / getprogname.c
CommitLineData
1de703da
MD
1/*
2 * $FreeBSD: src/lib/libc/gen/getprogname.c,v 1.1.2.1 2001/06/14 00:06:12 dd Exp $
e59e8ef1 3 * $DragonFly: src/lib/libc/gen/getprogname.c,v 1.3 2005/03/09 18:52:21 joerg Exp $
1de703da 4 */
984263bc 5
e59e8ef1
JS
6#include <stdlib.h>
7
984263bc
MD
8extern const char *__progname;
9
10const char *
11getprogname(void)
12{
984263bc
MD
13 return (__progname);
14}