strrev man page on Xenix

Man page or keyword search:  
man Server   1130 pages
apropos Keyword Search (all sections)
Output format
Xenix logo
[printable version]



     STRREV(DOS)	      XENIX System V		   STRREV(DOS)

     Name
	  strrev - Reverses the order of characters in a string.

     Syntax
	  #include <string.h>

	  char *strrev (string);
	  char *string;

     Description
	  The strrev function reverses the order of the characters in
	  the given string.  The terminating null character ('\0')
	  remains in place.

     Return Value
	  strrev returns a pointer to the altered string.  There is no
	  error return.

     See Also
	  strcat(DOS), strset(DOS)

     Example
	  #include <string.h>

	  char string[100]; int result;	     .	     .	     .	/*
	  Determine if a string is a palindrome (the same ** string
	  read forwards and backwards).	 */

	  result = strcmp (string,strrev (strdup (string)));

	  /* If result==0 the string is a palindrome.  */

     Notes
	  This call must be compiled with the -dos flag.

     Page 1					      (printed 8/7/87)

[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Xenix

List of man pages available for Xenix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net