ReactOS  0.4.14-dev-854-gb9426a3
strrev.c File Reference
#include <precomp.h>
Include dependency graph for strrev.c:

Go to the source code of this file.

Functions

char *CDECL _strrev (char *s)
 

Function Documentation

◆ _strrev()

char* CDECL _strrev ( char s)

Definition at line 16 of file strrev.c.

17 {
18  char a, *b, *e;
19  b=e=s;
20  while (*e)
21  e++;
22  e--; /* start at last char, not NULL char */
23  while ( b < e )
24  {
25  a=*b;
26  *b=*e;
27  *e=a;
28  b++;
29  e--;
30  }
31  return s; /* return ptr to beginning of string */
32 }
#define a
Definition: ke_i.h:78
#define e
Definition: ke_i.h:82
#define b
Definition: ke_i.h:79
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLdouble s
Definition: gl.h:2039
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204