window.doc getlin clarification

Clarify the getlin interface, which is used with the implicit assumption
that an input buffer of size BUFSZ (including the nul) is sufficient.
This commit is contained in:
cohrs
2002-01-24 03:13:56 +00:00
parent ef8f180fbc
commit 04ecb2e1a2
+3
View File
@@ -164,6 +164,9 @@ getlin(const char *ques, char *input)
-- getlin() must call flush_screen(1) before doing anything. -- getlin() must call flush_screen(1) before doing anything.
-- This uses the top line in the tty window-port, other -- This uses the top line in the tty window-port, other
ports might use a popup. ports might use a popup.
-- getlin() can assume the input buffer is at least BUFSZ
bytes in size and must truncate inputs to fit, including
the nul character.
int get_ext_cmd(void) int get_ext_cmd(void)
-- Get an extended command in a window-port specific way. -- Get an extended command in a window-port specific way.
An index into extcmdlist[] is returned on a successful An index into extcmdlist[] is returned on a successful