Changeset 103444 in vbox for trunk/src/VBox/Runtime/common/string/RTStrCopy.cpp
- Timestamp:
- Feb 19, 2024 1:58:17 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/RTStrCopy.cpp
r103252 r103444 45 45 46 46 47 DECLINLINE(int) rtStrCopy(char *pszDst, size_t cbDst, const char *pszSrc)47 RTDECL(int) RTStrCopy(char *pszDst, size_t cbDst, const char *pszSrc) 48 48 { 49 49 size_t cchSrc = strlen(pszSrc); … … 61 61 return VERR_BUFFER_OVERFLOW; 62 62 } 63 64 RTDECL(int) RTStrCopy(char *pszDst, size_t cbDst, const char *pszSrc)65 {66 return rtStrCopy(pszDst, cbDst, pszSrc);67 }68 63 RT_EXPORT_SYMBOL(RTStrCopy); 69 64 70 RTDECL(char *) RTStrCopy2(char *pszDst, size_t cbDst, const char *pszSrc)71 {72 return RT_SUCCESS(rtStrCopy(pszDst, cbDst, pszSrc)) ? pszDst : NULL;73 }74 RT_EXPORT_SYMBOL(RTStrCopy2);75
Note:
See TracChangeset
for help on using the changeset viewer.