gstream-set_input_string (3) Linux Manual Page
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:
char buf[100];The user will see the following
gs << "What’s your opinion about gstream?\n";gs.set_input_string("I think it is incredible wonderful!");
gs.getline(buf, 100);
What’s your opinion about gstream?where the ‘|’ represents the cursor, and (s)he can edit the string, for example
I think it is incredible wonderful!|
What’s your opinion about gstream?resulting in ‘buf’ containing the string "I think it is superior, fantastic and wonderful!"
I think it is superior, fantastic and| wonderful!
