_strrev, _wcsrev (Windows CE 5.0)

Send Feedback

Developing an Application > Microsoft C Run-time Library for Windows CE > Run-time Library Reference

Reverse characters of a string.

char *_strrev( char *string );wchar_t *_wcsrev( wchar_t *string);

Parameters

  • string
    Null-terminated string to reverse.

Return Values

Both functions return a pointer to the altered string. No return value is reserved to indicate an error.

Remarks

These functions are supported by all versions of the C run-time libraries.

The _strrev function reverses the order of the characters in string. The terminating null character remains in place. The arguments and return value of _wcsrev are wide-character strings.

The following table shows generic-text routine mappings for this function.

TCHAR.H Routine _UNICODE Defined
_tcsrev _wcsrev

For more information about TCHAR.H routines, see Generic Text Mappings.

Requirements

OS Versions: Windows CE 2.0 and later.

Header: stdio.h, string.h.

Link Library: coredll.dll.

See Also

strcpy

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.