Skip to content

mdz_ansi_alg_reverse

Maksym Dzyubenko edited this page Oct 8, 2024 · 1 revision

Reverses characters in string, like "1234" into "4321".

enum mdz_error mdz_ansi_alg_reverse(char* pcData, size_t nLeftPos, size_t nRightPos);

Parameter Description
pcData pointer to string
nLeftPos 0-based start position to search for replace from. Use 0 to search from the beginning of string
nRightPos 0-based end position to search for replace up to. Use Size-1 or SIZE_MAX to seach till the end of string
Return Description
MDZ_ERROR_LICENSE license is not initialized using mdz_ansi_alg_init() or invalid
MDZ_ERROR_DATA pcData is NULL
MDZ_ERROR_BIG_RIGHT nRightPos is SIZE_MAX
MDZ_ERROR_BIG_LEFT nLeftPos >= nRightPos
MDZ_ERROR_NONE function succeeded
mdz_ansi_alg API Reference is generated using mdzApiRefGenerator.