Rechercher une page de manuel
gstream-set_max_input_length
Langue: en
Version: version 1.6 (fedora - 05/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
set_max_input_lengthSYNOPSIS
#include <gstream.h>void set_max_input_length(int)
DESCRIPTION
This sets the maximum number of characters that the inputter will accept from the user at the next, and only the next, input, i.e. if you call this function with 5set_max_input_length(5);and the user has made the following input
abcde|he won't be able to enter anymore characters before at least one of them has been deleted. If the three middle characters are deleted
a|ethen it is possible to enter three new characters wherever the user want. For example
1a2e3|Note that it is possible to set a default string which is longer than this supplied value; in that case the user will have to delete some characters if he wants to enter any himself.
Also note that this function only affects the next input, not the inputs after that.
SEE ALSO
gstream-set_input_string(3)Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre