[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ncurses widechars

From: Thomas Dickey
Subject: Re: ncurses widechars
Date: Sat, 11 Mar 2006 15:25:10 -0500
User-agent: Mutt/1.5.11+cvs20060126

On Sat, Mar 11, 2006 at 03:22:07AM +0300, Igor Bogomazov wrote:
> Hello,
> Just noticed the following inconsistence:
> int addnwstr(const wchar_t *wstr, int n);
> int mvaddnwstr(int y, int x, const wchar_t *wstr, int n);
> int mvwaddnwstr(WINDOW *win, int y, int x, const wchar_t *wstr, int n);
> all of these (and the same functions for (cchar_t *) strings) gets the last
> variable as int, but it should be size_t for functions like wmemset, wmemcpy
> and others from wchar.h get size_t.

manpage notes:

       The four routines with n as the last argument write at most  n  wchar_t
       characters.   If  n  is -1, then the entire string will be added, up to
       the maximum number of characters that will fit on the line, or until  a
       terminating null is reached.

(size_t is unsigned)

Thomas E. Dickey <address@hidden>

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]