From 5fcc5c34ac647fa10a2b1fd45f48bd45e1c798f0 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sun, 9 Apr 2023 09:09:15 -0700 Subject: [PATCH] Remove 1992/adrian alt code + format README.md The alt code is not needed as all it does is use gets() instead of fgets() and it was decided it's best to not have this. --- 1992/adrian/Makefile | 4 ++-- 1992/adrian/README.md | 25 ++++++------------------- 2 files changed, 8 insertions(+), 21 deletions(-) diff --git a/1992/adrian/Makefile b/1992/adrian/Makefile index fe0a5e91c..9001e45d0 100644 --- a/1992/adrian/Makefile +++ b/1992/adrian/Makefile @@ -118,8 +118,8 @@ OBJ= ${PROG}.o DATA= TARGET= ${PROG} # -ALT_OBJ= ${PROG}.alt.o -ALT_TARGET= ${PROG}.alt +ALT_OBJ= +ALT_TARGET= ################# diff --git a/1992/adrian/README.md b/1992/adrian/README.md index 9bc7b26f9..7ba2a9741 100644 --- a/1992/adrian/README.md +++ b/1992/adrian/README.md @@ -1,10 +1,10 @@ # Most Educational: - Adrian Mariano - University of Washington - 2729 72nd Ave SE - Mercer Island, WA 98040 - USA +Adrian Mariano +University of Washington +2729 72nd Ave SE +Mercer Island, WA 98040 +USA ## To build: @@ -26,7 +26,6 @@ Thus the code now first trims off the last character of the buffer read to get the same correct functionality but in a safe way. Thank you Cody for your assistance! -For the original version [adrian.alt.c](adrian.alt.c) see the `Alternate code` section below. ## Try: @@ -42,18 +41,6 @@ For the slow minded, try: NOTE: if you do not specify an arg to the program it will segfault. -### Alternate code: - -For the original version that uses `gets()` try: - - -```sh -make alt -``` - -Use `adrian.alt` as you would `adrian`. - - ## Judges' comments: @@ -64,7 +51,7 @@ NOTE: Some compilers have had trouble optimizing this entry. ## Author's comments: - ADrian's GREP (adgrep) +### ADrian's GREP (adgrep) For those confused by the complexity of full-blown egrep style regular expressions, this program offers an alternative. It implements an