Homework 3 Ex 2 memory check

Homework 3 Ex 2 memory check

You cannot submit for this problem because the homework's deadline is due.

Both stdout and stderr of your program will be redirected to stderr in JOJ.

For input files, the length of a line is no longer than 2048.

Makefile used:

CC = clang
CFLAGS = -std=gnu11 -O2 -Wall -Wextra -Werror -pedantic -Wno-unused-result -Wconversion -Wvla
EX3_SRC = *.c
EX3 = ex3
EX3MC = ex3_memory_check
EX3MC_FLAGS = -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -fsanitize=integer
.PHONY: clean

all: $(EX3) $(EX3MC)
    @echo ex3 successfully constructed

$(EX3): $(EX3_SRC)
    $(CC) $(CFLAGS) -o $(EX3) $(EX3_SRC)

$(EX3MC) : $(EX3_SRC)
    $(CC) $(CFLAGS) $(EX3MC_FLAGS) -o $(EX3MC) $(EX3_SRC)

.c.o:
    $(CC) $(CFLAGS) -c $< -o $@

clean:
    $(RM) *.o *.a *~ $(EX3) $(EX3MC)

Wrapper to run your program on JOJ:

DList Series 1

Not Claimed
Status
Finished
Problems
4
Open Since
2021-10-23 00:00
DDL
2021-10-28 23:59
Extension
72.0 hour(s)