MCPcopy Index your code
hub / github.com/RsyncProject/rsync / stpcpy

Function stpcpy

popt/system.h:32–40  ·  view source on GitHub ↗

Copy SRC to DEST, returning the address of the terminating '\0' in DEST. */

Source from the content-addressed store, hash-verified

30#if !defined(HAVE_STPCPY)
31/* Copy SRC to DEST, returning the address of the terminating '\0' in DEST. */
32static inline char * stpcpy (char *dest, const char * src) {
33 register char *d = dest;
34 register const char *s = src;
35
36 do
37 *d++ = *s;
38 while (*s++ != '\0');
39 return d - 1;
40}
41#endif
42
43/* Memory allocation via macro defs to get meaningful locations from mtrace() */

Callers 10

singleOptionDefaultValueFunction · 0.85
singleOptionHelpFunction · 0.85
poptConfigLineFunction · 0.85
poptReadDefaultConfigFunction · 0.85
poptDupArgvFunction · 0.85
handleExecFunction · 0.85
findProgramPathFunction · 0.85
execCommandFunction · 0.85
expandNextArgFunction · 0.85
poptGetNextOptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected