adding a script to help me check for my uses of the io functions

This commit is contained in:
Dan Buch 2011-11-12 10:40:00 -05:00
parent 3b738faa65
commit b1260e7f5c
3 changed files with 22 additions and 1 deletions

3
.gitignore vendored
View File

@ -6,5 +6,6 @@
!*.py !*.py
!*.h !*.h
!*.mk !*.mk
!test_*.sh !*.sh
!*-input !*-input
!*.txt

6
check-for-iofunctions.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
for func in $(cat iofunctions.txt)
do
echo "$func: $(grep "$func" *.c | wc -l)"
done

14
iofunctions.txt Normal file
View File

@ -0,0 +1,14 @@
fscanf
fgets
fopen
freopen
fdopen
fclose
fcloseall
fgetpos
fseek
ftell
rewind
fprintf
fwrite
fread