
                   /* DOS1:src2/AreaCode.c (c)1992 Bill Beogelein */

#define VERSION "$VER: AreaCode v1.24 (" __DATE__ ")"
#define USAGE "\n %s \n Usage:  %s [-prompt -stderr -help] ### | state [### | ST ...]\n ?=wildcard\n", VERSION+6, argv[0]

  /*
   *  Usage #1:
   *     Pass United States, Canada, or Mexico area code,
   *     returns geographic location.
   *
   *   Usage #2:
   *     Pass 2 letter state name, returns all area codes used in that state.
   *     Supports '?' wildcard to match any single character.
   *
   *  You can prompt the user for input with the '-p' option.
   *  AreaCode -p                   (Prompt for areacodes until user hits RETURN)
   *  AreaCode -p 000               (Prompt for 1 areacode then exit)
   *  AreaCode -p 000 000           (Prompt for 2)
   *  AreaCode -p 000 000 000       (Prompt for 3)
   *  AreaCode -p a b c d           (Prompt for 4)
   *  AreaCode -p dummy dummy dummy (Prompt for 3)
   *
   *  AreaCode -s 313         (Do NOT pipe stderr into stdout.)
   *  AreaCode -h             (Show HELP screen & copyright notice.)
   *
   *  The Amiga ShareWare HeadQuarters BBS
   *  Bill Beogelein
   *  Box 530441
   *  Livonia, MI 48153 USA
   *  313-473-2020 BBS, 2-lines, USR HST-DS 14.4k, Fido 1:2410/207
   *  File Requ' magic-name AREACODE for latest publicly distributable release.
   *  Please pay shareware fees to keep 3rd party Xenolink software coming.
   *
   *  Future plans:
   *     Needs: time zones.
   *     Needs: full state names <-> state abbr <-> areacodes lookups.
   *     Needs: international +codes.
   *     Needs: Parts of 415 changed to 510 as of 02Sep91.
   *     Needs: Sort areacodes within each state.
   *     Needs: Sort city names within each state.
   *     Needs: Make PURE/RESIDENT
   *     Needs: Areacodes 909 917 when usage starts.
   *     Needs: At least 3 cities for each areacode.
   *     Needs: 810 when 313 splits on Aug 10, 1994.
   *     Needs: Compressed data.
   *
   *  xxx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx
   *
   *  History:
   *
   *  v1.24 Monday 14-Dec-92 05:33:37
   *     Recompiled with SAS v6.1 instead of v6.0.
   *     'Searches' also show state abbrv.
   *     "VA-Viginia, 804, 703" added missing "R"
   *     Newfoundland is 1 work, NOT 2.
   *     Added Jamaica.
   *     Added more 313/517/906 cities.
   *     Added 819,204,306,403,506 to "CN-Canada" list.
   *     Compile-date added to $VER: string.
   *
   *  v1.23 Saturday 14-Nov-92 20:59:59
   *     Recompiled with SAS v6.0 instead of Aztec.
   *     Used WB2.0 headers.
   *     Added -prompt option which asks user for input.
   *     All stderr is now piped into stdout (for Cnet-BBS usage).
   *     Added -stderr option which overrides the above.
   *     Added -help option.
   *     Returns OK, WARN, ERROR, FAIL for correct DOS script use.
   *     Added areacode 706.
   *
   *  v1.22 Sunday 22-Mar-92 03:52:42
   *     Added WB2.04 "$VER:" support.
   *     (You can now find the version # by using "c:Version AreaCode")
   *     Recompiled w/Aztec 5.2a instead of v5.0b
   *
   *     Major cities that changed to 310 (November 2nd, 1991):
   *     Long Beach, Downey, Whittier, Norwalk, Lakewood, Redondo Beach, San Pedro,
   *     Gardena, El Segundo, Santa Monica, Century City, Malibu....
   *
   *     Central Los Angeles, and Hollywood are staying at 213!
   *
   *     510 Berkeley, CA
   *     309 is IL but wasn't listed under AC IL
   *     410 Annapolis, MD (new)
   *
   *  v1.21 Friday 19-Jul-91 00:17:49
   *     Added 719 Colorado Springs, CO
   *     Fixed 303, no longer "all of CO"
   *
   *  v1.20 Tuesday 25-Jun-91 19:30:35
   *     Added 407 Orlando, FL
   *
   *  v1.19 Wednesday 29-Aug-90 20:37:14
   *     Added 908 NJ
   *     From: static BYTE *ac2st[207]={
   *       To: static BYTE *ac2st[]={
   *     Re-compiled w/Aztec v5.0b instead of v3.6
   *     Made to compile w/32 ints instead of 16 ints
   *     exit() returns a LONG
   *     No need to -z6300 for extra space
   *     Re-packed w/LHarc instead of ARC
   *
   *  v1.18 02-Mar-90
   *     Added 508 to state Mass.
   *     Must "comp DOS1:src2/AreaCode.c -dBB -z6300" for extra string space.
   *
   *  v1.17 15-Jan-90
   *     Fixed FL spelling
   *     Fixed FL ac 804-->904
   *
   *  v1.16 01-Jan-90
   *     Added 310 for Feb92 start-up
   *     Upper/lower case errors fixed
   *
   *  v1.15 02-Nov-89
   *     Added more cities to 708 312 815
   *
   *  v1.14 24-Oct-89
   *     Correctly all case
   *     ac2st[] not terminated with 0
   *     Crash if "1> AreaCode ???", fixed
   *
   *  v1.13 04-Oct-89
   *     Added 708
   *     Added 408 to CA list
   *     SECRET removed
   *
   *  v1.12 18-Jul-89
   *     Added 508
   *
   *  v1.11 09-Mar-89
   *     Added 407, 409, 819
   *     Added Sharewarer's BBS #
   *
   *  v1.10 06-Feb-89
   *     Removed dup ac 212 NY
   *     String array now has 201 elements
   *
   *  v1.9  20-Nov-87
   *     Added 10 Canadian province abbr
   *
   *  v1.8  01-Nov-87
   *     Added state->AreaCode conversion
   *
   *  v1.7  07-Jul-87
   *     Supports '?' as 1 char wildcard
   *     Moved zipcodes/cities from switch/case into large array
   *     (made about 1K smaller)
   *     exit(SUCCESS/FAIL);
   *     Added beep()
   *     Sorted areacodes.
   *     Added ac 800/900
   *
   *  v1.6  03-Jun-87
   *     added Canada cities
   *     added 718 NY
   *     added 818
   *
   * *** EOF AreaCode.doc 313-473-2020 BBS ***/
   
