MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_strcpy

Function rt_strcpy

src/klibc/kstring.c:402–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400 */
401#ifndef RT_KLIBC_USING_USER_STRCPY
402char *rt_strcpy(char *dst, const char *src)
403{
404#ifdef RT_KLIBC_USING_LIBC_STRCPY
405 return strcpy(dst, src);
406#else
407 char *dest = dst;
408
409 while (*src != '\0')
410 {
411 *dst = *src;
412 dst++;
413 src++;
414 }
415
416 *dst = '\0';
417 return dest;
418#endif /* RT_KLIBC_USING_LIBC_STRCPY */
419}
420#endif /* RT_KLIBC_USING_USER_STRCPY */
421RTM_EXPORT(rt_strcpy);
422

Callers 15

lwp_struct_copyFunction · 0.85
rt_pci_driver_registerFunction · 0.85
rt_phy_driver_registerFunction · 0.85
sal_ioctlsocketFunction · 0.85
dfs_devfs_mkdirFunction · 0.85
dfs_file_realpathFunction · 0.85
dac_vol_sampleFunction · 0.85
can_sampleFunction · 0.85
adc_vol_sampleFunction · 0.85
player_controlFunction · 0.85
dfs_win32_getdentsFunction · 0.85

Calls

no outgoing calls

Tested by 3

dac_vol_sampleFunction · 0.68
can_sampleFunction · 0.68
adc_vol_sampleFunction · 0.68