diff --git a/1992/westley/.gitignore b/1992/westley/.gitignore index 2a0c890f9..24736103d 100644 --- a/1992/westley/.gitignore +++ b/1992/westley/.gitignore @@ -1 +1,2 @@ westley +whereami diff --git a/1992/westley/Makefile b/1992/westley/Makefile index 588bb8379..60bf8bd24 100644 --- a/1992/westley/Makefile +++ b/1992/westley/Makefile @@ -183,7 +183,7 @@ all: data ${TARGET} supernova deep_magic magic charon pluto ${PROG}: ${PROG}.c - @echo "NOTE: This entry might not compile when using modern compilers." + @echo "NOTE: your terminal must wrap at 80 columns for this to work right!" ${CC} ${CFLAGS} $< -o $@ ${LIBS} whereami: ${PROG} diff --git a/1992/westley/README.md b/1992/westley/README.md index 775abad3f..52f35968c 100644 --- a/1992/westley/README.md +++ b/1992/westley/README.md @@ -10,7 +10,12 @@ make all - NOTE: This entry might not compile when using modern compilers. + +NOTE: [Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this to +work with clang by changing the third and fourth arg of main() to be ints inside +main(); clang requires args 2 - 4 to be `char **`. Thank you Cody for your +assistance! + ### To run @@ -22,14 +27,25 @@ ./whereami lat long -## Judges' comments - - Where lat and long correspond to your latitude and longitude. +Where lat and long correspond to your latitude and longitude. - To find the approximate place where this entry was judged, type: +NOTE: you must have a terminal that wraps at 80 columns (!) in order for this to +show correctly! + + +## Try: + + ./whereami 47 -122 (- means west of meridian) + ./whereami 47 122 + + +## Judges' comments: + +To find the approximate place where this entry was judged, type: ./whereami 37 -122 (- means west of meridian) - + + ## Author's comments Run the program with your latitude & longitude as integer diff --git a/1992/westley/westley.c b/1992/westley/westley.c index 53bdc75f1..2fe9a369c 100644 --- a/1992/westley/westley.c +++ b/1992/westley/westley.c @@ -1,5 +1,5 @@ main(l - ,a,n,d)char**a;{ + ,a)char**a;{int n;int d; for(d=atoi(a[1])/10*80- atoi(a[2])/5-596;n="@NKA\ CLCCGZAAQBEAADAFaISADJABBA^\