| # | Line 179 | Line 179 | char *str; | |
|---|---|---|
| 179 | ||
| 180 | ||
| 181 | static | |
| 182 | < | comm_comin(buf) /* read string from command line */ |
| 182 | > | comm_comin(buf, prompt) /* read string from command line */ |
| 183 | char *buf; | |
| 184 | + | char *prompt; |
| 185 | { | |
| 186 | putc(COM_COMIN, devout); | |
| 187 | + | if (prompt == NULL) |
| 188 | + | putc(0, devout); |
| 189 | + | else { |
| 190 | + | putc(1, devout); |
| 191 | + | myputs(prompt, devout); |
| 192 | + | } |
| 193 | fflush(devout); | |
| 194 | if (getc(devin) != COM_COMIN) | |
| 195 | reply_error("comin"); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |