Lines Matching refs:key
74 while (keywordlist[i].key != NULL) {
75 errlog(STATUS, "\t%s\n", keywordlist[i].key);
160 char key[BUFSIZ], *value = NULL, *p = NULL;
220 split(buf2, key, value);
221 ki = interesting_keyword(keywordlist, key);
295 key);
324 * interesting_keyword(char **keywordlist, const char *key) {
325 * returns the token associated with key if key is found in keywordlist
326 * returns XLATOR_KW_NOTFOUND if key is NOT found in keywordlist
333 interesting_keyword(xlator_keyword_t *keywordlist, const char *key)
337 if (strcasecmp(key, "data") == 0) {
340 if (strcasecmp(key, "function") == 0) {
344 if (strcasecmp(key, "end") == 0)
347 while (keywordlist[i].key != NULL) {
348 if (strcasecmp(keywordlist[i].key, key) == 0)
424 * split(const char *line, char *key, char *value);
425 * splits the line into keyword (key) and value pair
428 split(const char *line, char *key, char *value)
438 /* copy keyword from line into key */
440 *key++ = *p++;
442 *key = '\0';