C Tutorial/string.h/strxfrm

Материал из C\C++ эксперт
Перейти к: навигация, поиск

strxfrm

Item Value Header file string.h Declaration size_t strxfrm(char *str1, const char *str2, size_t count); Return 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.


<source lang="cpp">#include <string.h>

 #include <stdio.h>
 int main(void)
 {
   char *s1 = "asdfasdfasdf";
   char *s2 = "asdfasdfasdf";
  
   strxfrm(s1, s2, 10);
 }</source>