#include <stdio.h>
#include <string.h>
#include <conio.h>

char * odwroc_lan(char *s);

main()
{
  char *str="sok z aronii...";
  clrscr();
  printf("%s",str);
  printf("\n");
  printf("%s",odwroc_lan(str));
  printf("\n");
  printf("%s",odwroc_lan(str));
  getchar();
  return 0;
}

char * odwroc_lan(char *s)
{
   char *pocz,*kon,znak;

   pocz=s;
   kon =s+strlen(s)-1;

   while (pocz<kon)
    {
       znak=*pocz;
      *pocz=*kon;
      *kon =znak;
       pocz++;
       kon--;
    }

   return s;
}

