Namespaces
Variants
Views
Actions

strxfrm

From cppreference.com
< c‎ | string‎ | byte
Revision as of 13:52, 10 April 2013 by P12 (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <string.h>
</td>

<td></td> <td></td> <tr class="t-dcl ">

<td >
size_t strxfrm( const char          *dest, const char          *src,
                size_t count );
</td>

<td class="t-dcl-nopad"> </td> <td > (until C99) </td> </tr> <tr class="t-dcl ">

<td >
size_t strxfrm( const char *restrict dest, const char *restrict src,
                size_t count );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C99) </td> </tr> Template:ddcl list end

Transforms the null-terminated byte string pointed to by src according to the current locale and copies the first count characters of the transformed string to destination, returning its length. Alternativelly, the function can be used to only retrieve the length, by specifying a null pointer for dest and 0 for count.

Contents

Parameters

dest - pointer to the byte string to copy the transformed string to
src - pointer to the null-terminated byte string to transform
count - maximum number of characters to transform

Return value

The length of the transformed string, not including the terminating null-character.

Example

See also

C++ documentation for strxfrm