summaryrefslogtreecommitdiff
path: root/lib/progname.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-12-05 12:14:04 +0100
committerBruno Haible <bruno@clisp.org>2009-12-05 12:14:04 +0100
commit32928258cedefe07adefd90d253d02f91f2e3a6c (patch)
treea34f0c0418f0a6a3fd267e4d8fea446f641f3d3b /lib/progname.c
parent208edc200d8bd7f9ce63cd348445b21fdbf58984 (diff)
downloadgnulib-32928258cedefe07adefd90d253d02f91f2e3a6c.tar.gz
progname: Clarify specification.
Diffstat (limited to 'lib/progname.c')
-rw-r--r--lib/progname.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/progname.c b/lib/progname.c
index bfa374a528..c8660c9418 100644
--- a/lib/progname.c
+++ b/lib/progname.c
@@ -1,6 +1,6 @@
/* Program name management.
Copyright (C) 2001-2003, 2005-2009 Free Software Foundation, Inc.
- Written by Bruno Haible <haible@clisp.cons.org>, 2001.
+ Written by Bruno Haible <bruno@clisp.org>, 2001.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -30,7 +30,9 @@
To be initialized by main(). */
const char *program_name = NULL;
-/* Set program_name, based on argv[0]. */
+/* Set program_name, based on argv[0].
+ argv0 must be a string allocated with indefinite extent, and must not be
+ modified after this call. */
void
set_program_name (const char *argv0)
{