Lines Matching refs:linebuf
98 static const char *keymatch(const char *linebuf, const char *key[]);
150 char linebuf[DICTMAXLINE]; /* line read from dict */
236 while (fgets(linebuf, DICTMAXLINE, dhp->fp) != NULL) {
238 if (*linebuf == '\n' || *linebuf == '#')
242 if (strncmp(linebuf, Header, sizeof (Header) - 1)) {
257 startparse(&pstate, &linebuf[sizeof (Header) - 1]);
382 char linebuf[DICTMAXLINE]; /* line read from dict */
403 while (fgets(linebuf, DICTMAXLINE, dhp->fp) != NULL) {
405 if (*linebuf == '\n' || *linebuf == '#')
409 if (strncmp(linebuf, Header, sizeof (Header) - 1) == 0)
412 if ((rhsp = keymatch(linebuf, key)) != NULL) {
442 char linebuf[DICTMAXLINE];
480 while (fgets(linebuf, DICTMAXLINE, dhp->fp) != NULL) {
488 if (*linebuf == '\n' || *linebuf == '#')
492 if (strncmp(linebuf, Header, sizeof (Header) - 1) == 0)
495 if ((ptr = strchr(linebuf, '=')) == NULL)
524 beginp = linebuf;
655 keymatch(const char *linebuf, const char *key[])
660 while (linebuf) {
662 while (*linebuf && isspace(*linebuf))
663 linebuf++;
667 if (ptr == NULL && *linebuf == '=') {
669 linebuf++;
670 while (*linebuf && isspace(*linebuf))
671 linebuf++;
672 return (linebuf);
677 while (*linebuf)
679 if (isspace(*linebuf) || *linebuf == '=')
683 } else if (*linebuf != *ptr)
686 linebuf++;