MCPcopy Create free account
hub / github.com/coreboot/coreboot / strncat

Function strncat

src/commonlib/bsd/string.c:44–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44char *strncat(char *dst, const char *src, size_t n)
45{
46 char *ptr = dst + strlen(dst);
47
48 /* Not using strncpy() because '\0' may not be appended. */
49 while (n-- > 0 && *src)
50 *ptr++ = *src++;
51
52 *ptr = '\0';
53 return dst;
54}
55
56unsigned int skip_atoi(char **ptr)
57{

Callers 3

test_strncatFunction · 0.85
__expand_stringFunction · 0.85
escape_string_valueFunction · 0.85

Calls 1

strlenFunction · 0.85

Tested by 1

test_strncatFunction · 0.68