From 3afb4e4e9405e5aa388be175407c9d9bd895fab0 Mon Sep 17 00:00:00 2001 From: uz Date: Sat, 10 Jul 2010 11:28:02 +0000 Subject: [PATCH] Added getopt. The implementation is based on a public domain source, originally written by Henry Spencer and supplied by Harald Arnesen. git-svn-id: svn://svn.cc65.org/cc65/trunk@4737 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/funcref.sgml | 60 ++++++++++++++++++++------- libsrc/common/Makefile | 1 + libsrc/common/getopt.c | 84 ++++++++++++++++++++++++++++++++++++++ testcode/lib/getopt-test.c | 61 +++++++++++++++++++++++++++ 4 files changed, 192 insertions(+), 14 deletions(-) create mode 100644 libsrc/common/getopt.c create mode 100644 testcode/lib/getopt-test.c diff --git a/doc/funcref.sgml b/doc/funcref.sgml index 409eefc87..fa764129f 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -568,6 +568,7 @@ It does not declare any functions. + @@ -704,7 +705,7 @@ id="malloc" name="malloc"> may still return _poserror