Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

char<

char<

type: function (subr) 
location: built-in
source file: xlstr.c
Common LISP compatible: yes
supported on: all machines

SYNTAX

(char< <char1> <charN> ... )
        <char1>         -       a character expression
        <charN>         -       character expression(s) to compare

DESCRIPTION

The CHAR< (character-LESS-THAN) function takes one or more character arguments. It checks to see if all the character arguments are monotonically increasing. T is returned if the arguments are of increasing ASCII value. In the case of two arguments, this has the effect of testing if <char1> is less than <char2>. This test is case sensitive - the character #\a is different (and of greater ASCII value) than #\A.

EXAMPLES

(char< #\a #\b)                         ; returns T
(char< #\b #\a)                         ; returns NIL
(char< #\a #\b #\c)                     ; returns T
(char< #\a #\a)                         ; returns NIL 
(char< #\a #\b #\b)                     ; returns NIL
(char< #\A #\a)                         ; returns T
(char< #\a #\A)                         ; returns NIL


Go to the first, previous, next, last section, table of contents.