size_t strxfrm(char* cpDest, const char* kcpSrc, size_t qCount);
#include <cstdio> #include <cstring> int main() { char caSource[] = "XoaX.net"; char caDest[20]; // Convert the first four chars of "XoaX.net" int iLength = strxfrm(caDest, caSource, 4); // Add a null-terminator for printing caDest[4] = '\0'; printf("Conversion: %s\n", caDest); printf("Converted bytes: %i\n", iLength); return 0; }
© 20072025 XoaX.net LLC. All rights reserved.