Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenstrrev.c
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS system libraries 00004 * FILE: lib/crt/?????? 00005 * PURPOSE: Unknown 00006 * PROGRAMER: Unknown 00007 * UPDATE HISTORY: 00008 * 25/11/05: Added license header 00009 */ 00010 00011 #include <precomp.h> 00012 00013 /* 00014 * @implemented 00015 */ 00016 char * _strrev(char *s) 00017 { 00018 char a, *b, *e; 00019 b=e=s; 00020 while (*e) 00021 e++; 00022 e--; /* start at last char, not NULL char */ 00023 while ( b < e ) 00024 { 00025 a=*b; 00026 *b=*e; 00027 *e=a; 00028 b++; 00029 e--; 00030 } 00031 return s; /* return ptr to beginning of string */ 00032 } Generated on Sun May 27 2012 04:36:42 for ReactOS by
1.7.6.1
|