x_locate_word
static int x_locate_word(const char *, int, int, int *, int *);
len = x_locate_word(buf, buflen, pos, startp, &is_command);