2003-07-21 Art Haas <ahaas@airmail.net>
* manual/charset.texi (Converting a Character): Fix example code so a valid pointer is returned.
This commit is contained in:
parent
7220da7c36
commit
cfba19423d
|
@ -696,7 +696,7 @@ mbstouwcs (const char *s)
|
||||||
if (nbytes >= (size_t) -2)
|
if (nbytes >= (size_t) -2)
|
||||||
/* Invalid input string. */
|
/* Invalid input string. */
|
||||||
return NULL;
|
return NULL;
|
||||||
*result++ = towupper (tmp[0]);
|
*wcp++ = towupper (tmp[0]);
|
||||||
len -= nbytes;
|
len -= nbytes;
|
||||||
s += nbytes;
|
s += nbytes;
|
||||||
@}
|
@}
|
||||||
|
|
Loading…
Reference in New Issue