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

Function strcpy

payloads/libpayload/libc/string.c:150–153  ·  view source on GitHub ↗

* Copy a string. * * @param d The destination memory. * @param s The source string. * @return A pointer to the destination memory. */

Source from the content-addressed store, hash-verified

148 * @return A pointer to the destination memory.
149 */
150char *strcpy(char *d, const char *s)
151{
152 return strncpy(d, s, strlen(s) + 1);
153}
154
155/**
156 * Concatenates two strings with a maximum length.

Callers 12

PDC_getclipboardFunction · 0.50
PDC_setclipboardFunction · 0.50
PDC_freeclipboardFunction · 0.50
PDC_getclipboardFunction · 0.50
PDC_setclipboardFunction · 0.50
PDC_getclipboardFunction · 0.50
PDC_getclipboardFunction · 0.50
PDC_setclipboardFunction · 0.50
PDC_freeclipboardFunction · 0.50
weditstrFunction · 0.50
subfunc2Function · 0.50
set_menu_markFunction · 0.50

Calls 2

strlenFunction · 0.85
strncpyFunction · 0.70

Tested by

no test coverage detected