bug-ncurses
[Top][All Lists]
Advanced

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

Re: ncurses_intro


From: Thomas Dickey
Subject: Re: ncurses_intro
Date: Mon, 12 May 2003 14:55:54 -0400
User-agent: Mutt/1.3.27i

On Mon, May 12, 2003 at 01:17:46PM +0200, Waesch Timo wrote:
> Hello,
> 
> I think I've found an error in the ncurses_intro documentation.
> The set_field_type function with the TYPE_NUMERIC must be:
> 
> int set_field_type(FIELD *field,
>               TYPE_NUMERIC, 
>               int padding,
>               int vmin,
>               int vmax);

I'm not sure (making a demo for this is on my current to-do list).
But I see fty_num.c

static void *Make_Numeric_Type(va_list * ap)
{ 
  numericARG *argn = (numericARG *)malloc(sizeof(numericARG));

  if (argn)
    { 
      argn->precision = va_arg(*ap,int);
      argn->low       = va_arg(*ap,double);
      argn->high      = va_arg(*ap,double);
#if HAVE_LOCALE_H
      argn->L         = localeconv();
#else
      argn->L         = NULL;
#endif
    }
  return (void *)argn;
}

> 
> instead of:
> 
> int set_field_type(FIELD *field,
>               TYPE_NUMERIC, 
>               int padding,
>               double vmin,            /* double is false */
>               double vmax);
> 
> 
> With best regards
> Timo Waesch
> Germany
> 
> 
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-ncurses

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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