| 352 | } |
| 353 | |
| 354 | static __inline unsigned int |
| 355 | ttydisc_findchar(const char *obstart, unsigned int oblen) |
| 356 | { |
| 357 | const char *c = obstart; |
| 358 | |
| 359 | while (oblen--) { |
| 360 | if (CTL_VALID(*c)) |
| 361 | break; |
| 362 | c++; |
| 363 | } |
| 364 | |
| 365 | return (c - obstart); |
| 366 | } |
| 367 | |
| 368 | static int |
| 369 | ttydisc_write_oproc(struct tty *tp, char c) |