Changeset 102992 in vbox for trunk/include
- Timestamp:
- Jan 22, 2024 5:33:49 PM (16 months ago)
- svn:sync-xref-src-repo-rev:
- 161224
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/string.h
r102989 r102992 256 256 * @param a_pDst Pointer to the destination string buffer. 257 257 * @param a_pSrc Pointer to the source NULL-terminated string buffer. 258 * @param a_cb ToCopy Size of destination buffer..258 * @param a_cbDst Size of destination buffer. 259 259 */ 260 260 #if defined(RT_OS_LINUX) && defined(__KERNEL__) 261 261 # if (RTLNX_VER_MIN(3,16,60)) 262 # define RT_STRSCPY(a_pDst, a_pSrc, a_cb ToCopy) strscpy((a_pDst), (a_pSrc), (a_cbToCopy))262 # define RT_STRSCPY(a_pDst, a_pSrc, a_cbDst) (void)strscpy((a_pDst), (a_pSrc), (a_cbDst)) 263 263 # else /* < 3.16.60 */ 264 # define RT_STRSCPY(a_pDst, a_pSrc, a_cb ToCopy) strlcpy((a_pDst), (a_pSrc), (a_cbToCopy))264 # define RT_STRSCPY(a_pDst, a_pSrc, a_cbDst) strlcpy((a_pDst), (a_pSrc), (a_cbDst)) 265 265 # endif 266 266 #else /* !RT_OS_LINUX && !__KERNEL__ */ 267 # define RT_STRSCPY(a_pDst, a_pSrc, a_cb ToCopy) strscpy((a_pDst), (a_pSrc), (a_cbToCopy))267 # define RT_STRSCPY(a_pDst, a_pSrc, a_cbDst) (void)strscpy((a_pDst), (a_pSrc), (a_cbDst)) 268 268 #endif /* !RT_OS_LINUX && !__KERNEL__ */ 269 269
Note:
See TracChangeset
for help on using the changeset viewer.