programming:c:function strrevWhat links here?
Defined in string.h.

Reverses all characters in s (except for the terminating null)

Declaration:


Remarks:

strrev changes all characters in a string to reverse order, except the terminating null character.

For example, it would change

to



Return Value:

strrev returns a pointer to the reversed string.

Example:
  1. include
  2. include


int main(void) { char *forward = "string";

printf("Before strrev(): %s\n", forward); strrev(forward); printf("After strrev(): %s\n", forward); return 0; }
programming:c:function strrev
programming - cgi - environment variables
programming:c:function feof
programming:windows:windows message decoding
AutoCAD - Dialog Control Language (DCL) - button
programming:c:function strncpy
filename:programming:c:function strrev
filename:programming%3Ac%3Afunction%20strrev
last edit:March 30 2009 01:12:24 (6375 days ago)
ct = 1789230570.000000 = September 12 2026 16:29:30
ft = 1238375544.000000 = March 30 2009 01:12:24
dt = 550855026.000000