From 4fd21e3125c3003ecd0ae28c50c8656b62faefba Mon Sep 17 00:00:00 2001 From: katherine Date: Wed, 18 Dec 2019 08:39:17 -0700 Subject: allow some two-char c string escape codes \a, \b, \f, \n, \r, \t, \v --- doc/interface.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/interface.md b/doc/interface.md index 978ecb3..0882acd 100644 --- a/doc/interface.md +++ b/doc/interface.md @@ -115,8 +115,9 @@ floating point number that can be read by the standard library `strtod` function and stored in a `double` type. this includes arguments like "4.9", "-1.2e20", "infinity", or "nan". -arguments acceptable to type `SIMPLE_OPT_CHAR` may be any single-byte -character. +arguments acceptable to type `SIMPLE_OPT_CHAR` may be any single-byte character +or one of the following two-character escape sequences: `\a`, `\b`, `\f`, `\n`, +`\r`, `\t`, `\v`. arguments acceptable to type `SIMPLE_OPT_STRING` may be any string of characters the user passes. -- cgit v1.2.3