while (LYSafeGets(&buf, stdin) != 0 && strncmp(buf, "---", 3) != 0) { int j;  for (j = strlen(buf) - 1; j >= 0 &&  (buf[j] == CR || buf[j] == LF); j--) buf[j] = '\0';
while (GetStdin(&buf, TRUE)) {
static int get_data_fun ARGS1(	char *,			next_arg GCC_UNUSED){    /*     *  User data for GET form.     */    char **get_data;    char *buf = NULL;    /*     *  On Unix, conflicts with curses when interactive     *  so let's force a dump.  - CL     *     *  On VMS, mods have been made in LYCurses.c to deal with     *  potential conflicts, so don't force the dump here. - FM     */#ifndef VMS    dump_output_immediately = TRUE;    LYcols = 80;#endif /* VMS */    StrAllocCopy(form_get_data, "?");   /* Prime the pump */    get_data = &form_get_data;    /*     *  Build GET data for later.  Stop reading when we see a line     *  with "---" as its first three characters.     */    while (LYSafeGets(&buf, stdin) != 0 &&	  strncmp(buf, "---", 3) != 0) {	int j;	for (j = strlen(buf) - 1; j >= 0 && /* Strip line terminators */	    (buf[j] == CR || buf[j] == LF); j--)	    buf[j] = '\0';	StrAllocCat(*get_data, buf);    }    return 0;}