MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / d_storestr

Function d_storestr

dep/hfsutils/libhfs/data.c:385–399  ·  view source on GitHub ↗

* NAME: data->storestr() * DESCRIPTION: incrementally store a string */

Source from the content-addressed store, hash-verified

383 * DESCRIPTION: incrementally store a string
384 */
385void d_storestr(unsigned char **ptr, const char *src, unsigned size)
386{
387 unsigned len;
388
389 len = strlen(src);
390 if (len > --size)
391 len = 0;
392
393 d_storeub(ptr, len);
394
395 memcpy(*ptr, src, len);
396 memset(*ptr + len, 0, size - len);
397
398 *ptr += size;
399}
400
401/*
402 * NAME: data->relstring()

Callers 4

l_putbbFunction · 0.85
l_putmdbFunction · 0.85
r_packcatkeyFunction · 0.85
r_packcatdataFunction · 0.85

Calls 1

d_storeubFunction · 0.85

Tested by

no test coverage detected