strxfrm Function

  • It returns the length of the transformed string .
  • The strxfrm() function transforms the string pointed to by str2 .


  • Syntax:

      size_t strxfrm(char *str1, const char *str2, size_t count);

    Example:

    #include <string.h>
    
    #include <stdio.h>
    
    
    
      int main()
    
      {
    
        char *s1 = "asdfasdfasdf";
    
    
    
        char *s2 = "asdfasdfasdf";
    
       
    
        strxfrm(s1, s2, 10);
    
    	return 0;
    
      }
    Back