mirror of
https://github.com/reactos/reactos.git
synced 2025-06-20 07:36:05 +00:00
Create a branch for header work.
svn path=/branches/header-work/; revision=45691
This commit is contained in:
parent
14fe274b1c
commit
9ea495ba33
19538 changed files with 0 additions and 1063950 deletions
32
lib/sdk/crt/string/strrev.c
Normal file
32
lib/sdk/crt/string/strrev.c
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: lib/crt/??????
|
||||
* PURPOSE: Unknown
|
||||
* PROGRAMER: Unknown
|
||||
* UPDATE HISTORY:
|
||||
* 25/11/05: Added license header
|
||||
*/
|
||||
|
||||
#include <precomp.h>
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
char * _strrev(char *s)
|
||||
{
|
||||
char a, *b, *e;
|
||||
b=e=s;
|
||||
while (*e)
|
||||
e++;
|
||||
e--; /* start at last char, not NULL char */
|
||||
while ( b < e )
|
||||
{
|
||||
a=*b;
|
||||
*b=*e;
|
||||
*e=a;
|
||||
b++;
|
||||
e--;
|
||||
}
|
||||
return s; /* return ptr to beginning of string */
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue