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

Function _cp_from_usr_string

components/lwp/lwp_syscall.c:9746–9761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9744}
9745
9746static char *_cp_from_usr_string(char *dst, char *src, size_t length)
9747{
9748 char *rc;
9749 size_t copied_bytes;
9750 if (length)
9751 {
9752 copied_bytes = lwp_get_from_user(dst, src, length);
9753 dst[copied_bytes] = '\0';
9754 rc = dst;
9755 }
9756 else
9757 {
9758 rc = RT_NULL;
9759 }
9760 return rc;
9761}
9762
9763/**
9764 * @brief Mount a filesystem.

Callers 1

sys_mountFunction · 0.85

Calls 1

lwp_get_from_userFunction · 0.85

Tested by

no test coverage detected