totn C Functions

C Language: strxfrm function
(Transform Locale-Specific String)

In the C Programming Language, the strxfrm function transforms the object pointed to by s2 placing the first n characters of the result in the object pointed to by s1 (including the null character).

Syntax

The syntax for the strxfrm function in the C Language is:

size_t strxfrm(char *s1, const char *s2, size_t n);

Parameters or Arguments

s1
A pointer to an array where the result will be copied.
s2
A pointer to the string that will be transformed.
n
The number of characters to be copied.

Returns

The strxfrm function returns the length of the transformed string. It can exceed n.

Required Header

In the C Language, the required header for the strxfrm function is:

#include <string.h>

Applies To

In the C Language, the strxfrm function can be used in the following versions:

  • ANSI/ISO 9899-1990

See Also

Other C functions that are noteworthy when dealing with the strxfrm function: