Changeset 96045 in vbox for trunk/src/VBox/Runtime/common/string/strcat.cpp
- Timestamp:
- Aug 5, 2022 12:26:04 AM (3 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/strcat.cpp
r96044 r96045 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT - CRT Strings, strc py().3 * IPRT - CRT Strings, strcat(). 4 4 */ 5 5 … … 34 34 35 35 /** 36 * Copy a string36 * Append one string to another. 37 37 * 38 38 * @returns Pointer to destination string 39 * @param pszDst Will contain a copy of pszSrc.39 * @param pszDst String to append @a pszSrc to. 40 40 * @param pszSrc Zero terminated string. 41 41 */ 42 #ifdef IPRT_NO_CRT 43 # undef strcpy 44 char *RT_NOCRT(strcpy)(char *pszDst, const char *pszSrc) 45 #else 46 char *strcpy(char *pszDst, const char *pszSrc) 47 #endif 42 #undef strcat 43 char *RT_NOCRT(strcat)(char *pszDst, const char *pszSrc) 48 44 { 49 45 char * const pszRet = pszDst; 46 pszDst = RTStrEnd(pszDst, RTSTR_MAX); 50 47 while ((*pszDst = *pszSrc++) != '\0') 51 48 pszDst++; … … 53 50 return pszRet; 54 51 } 55 RT_ALIAS_AND_EXPORT_NOCRT_SYMBOL(strc py);52 RT_ALIAS_AND_EXPORT_NOCRT_SYMBOL(strcat); 56 53
Note:
See TracChangeset
for help on using the changeset viewer.