Make 1992/gson not use gets() + update README.md

In the case of 1992/gson it was not as simple to change it to use
fgets() due to how the char * is set up. First it's set to argv (see
README.md for the more correct details) and then it's set to h which
was of size 256. Since the program requires the input be from the
command line I simply changed the buffer size to ARG_MAX+1 (which might
already be more than enough).

Fixed formatting in README.md.

Changed in Makefile the og to ag to match the description (and in the
places where og was used in the README.md I changed it to ag).

.gitignore also now has ag not og.

Possibly typos were fixed but I'm not sure now.
This commit is contained in:
Cody Boone Ferguson committed 2023-03-29 09:59:05 -07:00
1 parent 07b69a677b
commit 888b3b91a6
4 files changed
+209 -198

No files matched your search

+3 -3
View File
@@ -68,7 +68,7 @@ CINCLUDE=
# Optimization
#
OPT= -O3
OPT= -ggdb3
# Default flags for ANSI C compilation
#
@@ -114,7 +114,7 @@ PROG= ${ENTRY}
#
OBJ= ${PROG}.o
DATA=
TARGET= ${PROG} og
TARGET= ${PROG} ag
#
ALT_OBJ=
ALT_TARGET=
@@ -134,7 +134,7 @@ all: data ${TARGET}
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LIBS}
og: ${PROG}
ag: ${PROG}
${RM} -f $@
${LN} $< $@