MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / add2buf

Function add2buf

modules/tm/t_fifo.c:425–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423
424
425static inline char* add2buf(char *buf, char *end, str *name, str *value)
426{
427 if (buf+name->len+value->len+2+1>=end)
428 return 0;
429 memcpy( buf, name->s, name->len);
430 buf += name->len;
431 *(buf++) = ':';
432 *(buf++) = ' ';
433 memcpy( buf, value->s, value->len);
434 buf += value->len;
435 *(buf++) = '\n';
436 return buf;
437}
438
439
440

Callers 1

append2bufFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected