1set_max_input_length(3)         gstream manual         set_max_input_length(3)
2
3
4

NAME

6       set_max_input_length
7

SYNOPSIS

9       #include <gstream.h>
10
11
12       void set_max_input_length(int)
13

DESCRIPTION

15       This  sets  the  maximum  number  of  characters that the inputter will
16       accept from the user at the next, and only the next,  input,  i.e.   if
17       you call this function with 5
18
19          set_max_input_length(5);
20
21       and the user has made the following input
22
23          abcde|
24
25       he  won't  be  able  to enter anymore characters before at least one of
26       them has been deleted. If the three middle characters are deleted
27
28          a|e
29
30       then it is possible to enter three new  characters  wherever  the  user
31       want. For example
32
33          1a2e3|
34
35       Note  that  it is possible to set a default string which is longer than
36       this supplied value; in that case the user will  have  to  delete  some
37       characters if he wants to enter any himself.
38
39       Also  note  that  this  function  only  affects the next input, not the
40       inputs after that.
41
42

SEE ALSO

44       gstream-set_input_string(3)
45
46
47
48gstream                           version 1.6          set_max_input_length(3)
Impressum