Skip to content

Commit 5499855

Browse files
committed
include string.h in testing.c instead
1 parent 2ea8e38 commit 5499855

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

inheritance/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def compiles_test():
2121
inheritance = re.sub(r"int\s+main\(", "int distro_main(", open("inheritance.c").read())
2222
testing = open("testing.c").read()
2323
with open("inheritance_test.c", "w") as f:
24-
f.write("#include <string.h>\n")
2524
f.write(inheritance)
2625
f.write("\n")
2726
f.write(testing)

inheritance/testing.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <string.h>
2+
13
int check_alleles(person *p)
24
{
35
if (p -> parents[0] == NULL)

0 commit comments

Comments
 (0)