MCPcopy Create free account
hub / github.com/cppla/ServerStatus / str_append

Function str_append

server/src/system.c:1547–1561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1545}
1546
1547void str_append(char *dst, const char *src, int dst_size)
1548{
1549 int s = strlen(dst);
1550 int i = 0;
1551 while(s < dst_size)
1552 {
1553 dst[s] = src[i];
1554 if(!src[i]) /* check for null termination */
1555 break;
1556 s++;
1557 i++;
1558 }
1559
1560 dst[dst_size-1] = 0; /* assure null termination */
1561}
1562
1563void str_copy(char *dst, const char *src, int dst_size)
1564{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected