(Keeping the state): Fix mbsinit example.
authordrepper <drepper>
Mon, 1 Nov 1999 16:43:49 +0000 (16:43 +0000)
committerdrepper <drepper>
Mon, 1 Nov 1999 16:43:49 +0000 (16:43 +0000)
manual/charset.texi

index 1d6bae9..6b672d2 100644 (file)
@@ -512,8 +512,8 @@ Code using this function often looks similar to this:
   if (! mbsinit (&state))
     @{
       /* @r{Emit code to return to initial state.}  */
-      const char empty[] = "";
-      const char **srcp = &empty;
+      const wchar_t empty[] = L"";
+      const wchar_t *srcp = empty;
       wcsrtombs (outbuf, &srcp, outbuflen, &state);
     @}
   ...