Lines Matching defs:value
23 -q Don't show value after write
29 // Null terminate at =, return value
32 char *value = strchr(key, '=');
34 if (value) *(value++)=0;
36 return value;
51 static int write_key(char *path, char *key, char *value)
60 xwrite(fd, value, strlen(value));
93 // Read/write entries under a key. Accepts "key=value" in key if !value
94 static void process_key(char *key, char *value)
98 if (!value) value = split_key(key);
99 if ((toys.optflags & FLAG_w) && !value) {
100 error_msg("'%s' not key=value", key);
108 if (!(value && (!write_key(path, key, value) || (toys.optflags & FLAG_q)))) {
136 error_msg("'%s' not key=value", line);