C strxfrm function transforms a string
Syntax
C strxfrm function has the following syntax.
size_t strxfrm(char *str1, const char *str2, size_t count);
Header
C strxfrm function is from header file string.h.
Description
C strxfrm function returns the length of the transformed string.
The strxfrm()
function transforms the string pointed to by str2
.
Not more than count characters are written to the array pointed to by str1
.
Example
Use C strxfrm function to transform a string.
#include <string.h>
#include <stdio.h>
/*from ww w. ja v a 2 s. co m*/
int main(void)
{
char *s1 = "asdfasdfasdf";
char *s2 = "asdfasdfasdf";
strxfrm(s1, s2, 10);
}