StrSafe.h Byte-Count Functions
The following functions use a byte count rather than a character count.
Programming element | Description |
---|---|
StringCbCat StringCbCatEx |
Concatenate two strings and replaces strcat, wcscat |
StringCbCatN StringCbCatNEx |
Concatenate two strings and replace strncat |
StringCbCopy StringCbCopyEx |
Replace strcpy, wcscpy |
StringCbCopyN StringCbCopyNEx |
Replace strncpy |
StringCbGets StringCbGetsEx |
Copy a line of text and replace gets, _getws |
StringCbLength | Used to ensure that a string is not larger than a given length. This function replaces strlen |
StringCbPrintf StringCbPrintfEx |
Accept a format string and a list of arguments, combine them, and return a formated string. These functions replace sprintf, swprintf, wsprintf, _snprintf, _snwprintf |
StringCbVPrintf StringCbVPrintfEx |
Accept a format string and its arguments, provided as a va_list, and return a formatted string. These functions replace vsprintf, vswprintf, _vsnprintf, _vsnwprintf |
See Also
Send Feedback on this topic to the authors