- Function
Transform a string.
- Header
- Declaration
size_t __fastcall__ strxfrm (char* s1, const char* s2, size_t n);- Description
The
strxfrmfunction transforms the string pointed to by s2 and places the resulting string into the string pointed to by s1. The transformation is such that if thestrcmpfunction is applied to two transformed strings, it returns a value greater than, equal to, or less than zero, corresponding to the result of thestrcollfunction applied to the same two original strings. No more than n characters are placed into the resulting array pointed to by s1, including the terminating null character.- Limits
s1ands2must not point to the same memory area, otherwise the behaviour is undefined.- If
nis zero,s1may be a NULL pointer.- The function is only available as fastcall function, so it may only be used in presence of a prototype.
- Since cc65 doesn't support different charcter sets,
strxfrmwill just copy s2 to s1 usingstrncpy.- Availability
ISO 9899
- See also
- Example
None.