aboutsummaryrefslogtreecommitdiffhomepage
path: root/wgetopt.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-10-25 01:26:25 +1000
committerGravatar axel <axel@liljencrantz.se>2005-10-25 01:26:25 +1000
commit277f9b7e607e40ee84ac5c59fcc878d34cb586e2 (patch)
treedba9925930f8f011dda4b603919b3e0e38bea85c /wgetopt.c
parentf8de9de13de17a4dadab7d2fb1c2094c6a5b105c (diff)
Huge API documentation cleanup
darcs-hash:20051024152625-ac50b-41503feb4ea8d428c5b30c159aaae0c8f7ae46a2.gz
Diffstat (limited to 'wgetopt.c')
-rw-r--r--wgetopt.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/wgetopt.c b/wgetopt.c
index 8e1d28f4..229f3708 100644
--- a/wgetopt.c
+++ b/wgetopt.c
@@ -1,3 +1,22 @@
+/** \file wgetopt.c
+ A version of the getopt library for use with wide character strings.
+
+ This is simply the gnu getopt library, but converted for use with
+ wchar_t instead of char. This is not usually useful since the argv
+ array is always defined to be of type char**, but in fish, all
+ internal commands use wide characters and hence this library is
+ useful.
+
+ If you want to use this version of getopt in your program, simply
+ copy wgetopt.c and wgetopt.h into your program, include wgetopt.h,
+ and use all the regular getopt functions, prefixing every
+ function, global variable and structure with a 'w', and use only
+ wide character strings. There are no other functional changes in
+ this version of getopt besides using wide character strings.
+
+*/
+
+
/* Getopt for GNU.
NOTE: getopt is now part of the C library, so if you don't know what
"Keep this file name-space clean" means, talk to roland@gnu.ai.mit.edu