article.2

tmi2_fluffos_v2/lib/doc/functions/simul_efuns/article.2 · 836 B

From the archive tmi2_fluffos_v2.zip

Download the archive   « Back to the archive contents

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

Site Stats

Snippets: 1791
Codebases: 571