strrev

strrev --  reverses the order of characters in a string.

Syntax

strrev (string)

		

Arguments

string

A string.

Returns

A new string which is the reverse of the given string.

Description

Automatic, full featured, palindrome creator.

Example

    Gamma> strrev("I Palindrone I");
    "I enordnilaP I"
    Gamma> strrev("Madam, I'm adam");
    "mada m'I ,madaM"
    Gamma> strrev("123456789");
    "987654321"
    Gamma> strrev("poor dan is in a droop");
    "poord a ni si nad roop"
    Gamma>  
    		

See Also

strchr, strrchr

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.