Lines Matching defs:strp
58 md_find_string(mmd_t *mdp, char *strp, uint32_t *hashp)
63 hash = md_byte_hash((uint8_t *)strp, strlen(strp));
69 if (msp->hash == hash && strcmp(msp->strp, strp) == 0)
77 md_new_string(mmd_t *mdp, char *strp)
82 msp = md_find_string(mdp, strp, &hash);
87 msp->strp = strdup(strp);
88 if (msp->strp == NULL) {
92 msp->size = strlen(strp) + 1;
352 free(msp->strp);
545 (void) memcpy(string_bufferp + msp->build_offset, msp->strp,