C++ Programming/Code/Standard C Library/Functions/strxfrm

From Wikibooks, open books for an open world
Jump to: navigation, search

strxfrm[edit]

Syntax
#include <cstring>
size_t strxfrm( char *str1, const char *str2, size_t num );

The strxfrm() function manipulates the first num characters of str2 and stores them in str1. The result is such that if a strcoll() is performed on str1 and the old str2, you will get the same result as with a strcmp().

Related topics
strcmp - strcoll