cs240/labs/lab4/task2/check_string.py
2018-10-15 17:20:57 -04:00

6 lines
213 B
Python
Executable File

with open('mystring.c', 'r') as inF:
for line in inF:
if 'string.h' in line and 'mystring.h' not in line:
print("DO NOT USE ANY STRING FUNCTIONS OR YOU MAY LOSE POINTS")
exit()