From: Kristaps Dzonsons Date: Tue, 24 May 2011 21:41:11 +0000 (+0000) Subject: Document that spec2cp never returns 0. X-Git-Tag: VERSION_1_11_3~14 X-Git-Url: https://git.cameronkatri.com/mandoc.git/commitdiff_plain/5cfedfff08c35dc808f02a9d36eb9a23ddaa67c9?ds=inline Document that spec2cp never returns 0. --- diff --git a/mandoc.3 b/mandoc.3 index 313b3537..300f2981 100644 --- a/mandoc.3 +++ b/mandoc.3 @@ -1,4 +1,4 @@ -.\" $Id: mandoc.3,v 1.9 2011/05/24 21:31:23 kristaps Exp $ +.\" $Id: mandoc.3,v 1.10 2011/05/24 21:41:11 kristaps Exp $ .\" .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons .\" Copyright (c) 2010 Ingo Schwarze @@ -248,9 +248,7 @@ a Unicode codepoint. Returns \e0 (the nil character) if the input sequence is malformed. .It Fn mchars_spec2cp Convert a special character into a valid Unicode codepoint. -Returns \-1 on failure and 0 if no code-point exists (if this occurs, -the caller should fall back to -.Fn mchars_spec2str ) . +Returns \-1 on failure or a non-zero Unicode codepoint on success. .It Fn mchars_spec2str Convert a special character into an ASCII string. Returns NULL on failure.