Lines Matching refs:nlen
69 const char *name, size_t nlen) in varcontent() argument
73 if((strlen(list->name) == nlen) && in varcontent()
74 !strncmp(name, list->name, nlen)) { in varcontent()
235 size_t nlen; in varexpand() local
253 nlen = funcp - envp; in varexpand()
255 nlen = clp - envp; in varexpand()
256 if(!nlen || (nlen >= sizeof(name))) { in varexpand()
270 memcpy(name, envp, nlen); in varexpand()
271 name[nlen] = 0; in varexpand()
274 for(i = 0; (i < nlen) && in varexpand()
276 if(i != nlen) { in varexpand()
288 const struct tool_var *v = varcontent(global, name, nlen); in varexpand()
349 size_t nlen, in addvariable() argument
355 const struct tool_var *check = varcontent(global, name, nlen); in addvariable()
356 DEBUGASSERT(nlen); in addvariable()
360 p = calloc(1, sizeof(struct tool_var) + nlen); in addvariable()
362 memcpy(p->name, name, nlen); in addvariable()
381 size_t nlen; in setvariable() local
398 nlen = line - name; in setvariable()
399 if(!nlen || (nlen >= MAX_VAR_LEN)) { in setvariable()
400 warnf(global, "Bad variable name length (%zd), skipping", nlen); in setvariable()
408 memcpy(buf, name, nlen); in setvariable()
409 buf[nlen] = 0; in setvariable()
459 err = addvariable(global, name, nlen, content, clen, contalloc); in setvariable()