DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

cindex(TCL)


cindex -- return character indexed by given expression from string

Syntax

cindex string indexExpr

Description

Returns the character indexed by the expression indexExpr (zero based) from string.

If the expression indexExpr starts with the string ``end'', then ``end'' is replaced with the index of the last character in the string. If the expression starts with ``len'', then ``len'' is replaced with the length of the string.


© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003