ARTICLE(2) SYSTEM CALLS ARTICLE(2)
NAME
article - "simul_efun to return 'a' or 'an', according to
passed string
SYNOPSIS
string article(string str);
DESCRIPTION
This simul_efun examines the first character of string str
and sees if it is a vowel. If it is, article returns the
string "an", otherwise it returns the string "a".
Example (from _look.c):
string reg;
string race ;
/* ... */
reg = ob->query("long");
race = ob->query("race") ;
if(!reg) reg = "";
if (race) reg += (string)ob->query("cap_name") + " is "
+
article(race) + " " + race + ".0 ;
/* ... */
AUTHOR
Ichabod@TMI, 1/18/93
MudOS Release 0.9 Last change: 3-19-93