set_max_input_length(3)

πŸ“¦ version 1.6, in fedora 43, fedora 44

πŸ’… set_max_input_length(3) πŸ’…

okay bestie, this is the gstream manual page for set_max_input_length(3). it's giving "control the next input only" energy. ✨


πŸŽ€ NAME πŸŽ€

set_max_input_length


✨ SYNOPSIS ✨

#include <gstream.h>

void set_max_input_length(int)

🌸 DESCRIPTION 🌸

okay so this function sets the maximum number of characters that the inputter will accept from the user at the next, and only the next, input. literally just the next one. iykyk.

so if you call this function with 5:

set_max_input_length(5);

and the user has made the following input:

abcde|

then he won't be able to enter anymore characters before at least one of them has been deleted. periodt.

if the three middle characters are deleted:

a|e

then 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. no cap.


πŸ¦‹ SEE ALSO πŸ¦‹


πŸ’– this page is from the gstream manual, version 1.6, and it's literally called set_max_input_length(3). mwah πŸ’‹

πŸ“¦ where this page comes from