ReactOS 0.4.16-dev-942-g91fadeb
strrev.c File Reference
#include <string.h>
Include dependency graph for strrev.c:

Go to the source code of this file.

Functions

char *__cdecl _strrev (char *string)
 

Function Documentation

◆ _strrev()

char *__cdecl _strrev ( char string)

Definition at line 31 of file strrev.c.

34{
35 char *start = string;
36 char *left = string;
37 char ch;
38
39 while (*string++) /* find end of string */
40 ;
41 string -= 2;
42
43 while (left < string)
44 {
45 ch = *left;
46 *left++ = *string;
47 *string-- = ch;
48 }
49
50 return(start);
51}
GLuint start
Definition: gl.h:1545
GLint left
Definition: glext.h:7726
char string[160]
Definition: util.h:11