Lines Matching refs:buf1
76 getword(char *buf1, char *buf2, int flag)
81 while (isspace((unsigned char)*buf1))
82 buf1++;
83 if (*buf1 != ',') {
84 if (!*buf1) {
88 while (cnt < WORDLEN && *buf1 &&
89 !isspace((unsigned char)*buf1) && *buf1 != ',')
91 if (isupper((unsigned char)*buf1)) {
93 tolower((unsigned char)*buf1++);
96 *buf2++ = *buf1++;
100 if (islower((unsigned char)*buf1)) {
102 toupper((unsigned char)*buf1++);
105 *buf2++ = *buf1++;
109 *buf2++ = *buf1++;
113 while (*buf1 && !isspace((unsigned char)*buf1))
114 buf1++;
116 *buf2++ = *buf1++;
118 while (isspace((unsigned char)*buf1))
119 buf1++;
120 return (*buf1 ? buf1 : NULL);