Subversion Repositories Kolibri OS

Rev

Rev 6412 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6412 Rev 6433
Line -... Line 1...
-
 
1
#include 
-
 
2
 
1
char* strrev(char *p)
3
char* strrev(char *p)
2
{
4
{
3
  char *q = p, *res = p, z;
5
  char *q = p, *res = p, z;
4
  while(q && *q) ++q; /* find eos */
6
  while(q && *q) ++q; /* find eos */
5
  for(--q; p < q; ++p, --q) 
7
  for(--q; p < q; ++p, --q)