gstream-set_input_string(3)
| set_input_string(3) | gstream manual | set_input_string(3) |
NAME
set_input_string
SYNOPSIS
#include <gstream.h>
void set_input_string(char const *s);
DESCRIPTION
This function provides a way to specify an editable default string when inputting. Consider the following example:
The user will see the following
char buf[100];
gs << "What's your opinion about gstream?\n";
gs.set_input_string("I think it is incredible wonderful!");
gs.getline(buf, 100);
where the '|' represents the cursor, and (s)he can edit the string, for example
What's your opinion about gstream?
I think it is incredible wonderful!|
resulting in 'buf' containing the string "I think it is superior, fantastic and wonderful!"
What's your opinion about gstream?
I think it is superior, fantastic and| wonderful!
| version 1.6 | gstream |
