MicrOS
strxfrm.c File Reference
#include "../string.h"

Functions

size_t strxfrm (char *destination, const char *source, size_t num)
 Transform string using locale. More...
 

Function Documentation

◆ strxfrm()

size_t strxfrm ( char *  destination,
const char *  source,
size_t  num 
)

Transform string using locale.

Transforms the C string pointed by source according to the current locale and copies the first num characters of the transformed string to destination, returning its length.

Parameters
destinatinoPointer to the destination array where the content is to be copied. It can be a null pointer if the argument for num is zero.
sourceC string to be transformed.
numMaximum number of characters to be copied to destination.
Returns
The length of the transformed string, not including the terminating null-character.