Searched defs:eq (Results 1 - 2 of 2) sorted by relevance

/system/bt/osi/src/
H A Dhash_map_utils.cc45 char* eq = strchr(kvpair, '='); local
47 if (eq == kvpair) goto next_pair;
51 if (eq) {
52 key = osi_strndup(kvpair, eq - kvpair);
54 // The increment of |eq| moves |eq| to the beginning of the value.
55 ++eq;
56 value = (*eq != '\0') ? osi_strdup(eq) : osi_strdup("");
/system/core/libcutils/
H A Dstr_parms.cpp159 char *eq = strchr(kvpair, '='); /* would love strchrnul */ local
164 if (eq == kvpair)
167 if (eq) {
168 key = strndup(kvpair, eq - kvpair);
169 if (*(++eq))
170 value = strdup(eq);

Completed in 2248 milliseconds