Lines Matching refs:p
47 char *p = malloc(len + 1); in Memdup() local
48 if(!p) in Memdup()
51 memcpy(p, data, len); in Memdup()
52 p[len] = 0; in Memdup()
53 return p; in Memdup()
354 struct tool_var *p; in addvariable() local
360 p = calloc(1, sizeof(struct tool_var) + nlen); in addvariable()
361 if(p) { in addvariable()
362 memcpy(p->name, name, nlen); in addvariable()
364 p->content = contalloc ? content : Memdup(content, clen); in addvariable()
365 if(p->content) { in addvariable()
366 p->clen = clen; in addvariable()
368 p->next = global->variables; in addvariable()
369 global->variables = p; in addvariable()
372 free(p); in addvariable()