linked list V1 / phone-number typos / student setup script V1

This commit is contained in:
2021-09-04 20:57:50 +02:00
parent 33cc1343cb
commit 064f3d27a9
15 changed files with 992 additions and 6 deletions

View File

@@ -27,9 +27,9 @@
default: all
ALLSOURCES=$(wildcard ./*.c)
TESTSOURCES=$(wildcard ./test_*.c)
SRC=$(filter-out $(TESTSOURCES),$(ALLSOURCES))
ALLSOURCES:=$(wildcard ./*.c)
TESTSOURCES:=$(wildcard ./test_*.c)
SRC:=$(filter-out $(TESTSOURCES),$(ALLSOURCES))
include makefile
@@ -52,6 +52,5 @@ unitdebug: CFLAGS+=-DDEBUG
unitdebug: clean unit
unit: CFLAGS+=-DUNIT_TEST
unit: SOURCES=$(wildcard ./*.c)
unit: *.c *.h
$(CC) $(CFLAGS) $(SRC) -o tests.out $(LIBS)

View File

@@ -1,3 +1,4 @@
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>

View File

@@ -1,10 +1,10 @@
#ifndef PHONE_NUMBER_H
#define PHONE_NUMBER_H
#include "br-common.h"
#define NUMBER_LENGTH 10
char *phone_number_clean(const char *input);
#endif
#include "br-common.h"