>From the docs

"int Fl_Input_::maximum_size ( )        const [inline]

Gets the maximum length of the input field.

Todo:
    It is not clear if this function is actually required"


re Todo

I think this is required.

When the size of the contents of the input field needs to be limited,
so it can be stored in a fixed length buffer for instance, this is
very useful.

eg  Fl_Input_::maximum_size (30);

When the content are transfered to a dynamic buffer, again, very
useful.

eg

char *buffer = (char *)alloca(Fl_Input_::maximum_size () + 1);

I vote to keep Fl_Input_::maximum_size ()
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to