The strxfrm() function transforms the string pointed to by str2. Not more than count characters are written to the array pointed to by str1.
#include <string.h> #include <stdio.h> int main(void) { char *s1 = "asdfasdfasdf"; char *s2 = "asdfasdfasdf"; strxfrm(s1, s2, 10); }