home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
OL.LZH
/
PROCS.LZH
/
LASTNAME.ICN
< prev
next >
Wrap
Text File
|
1991-09-05
|
724b
|
28 lines
############################################################################
#
# Name: lastname.icn
#
# Title: Produce last name
#
# Author: Ralph E. Griswold
#
# Date: September 2, 1991
#
############################################################################
#
# Produces the last name of a name in conventional form. Obviously, it
# doesn't work for every possibility.
#
############################################################################
procedure lastname(s)
while line := trim(s) do {
line ?:= tab(upto(',')) # Get rid of things like " ... , Jr."
line ? {
every i := upto(' ')
tab(\i + 1)
return tab(0)
}
}
end