adding a script to help me check for my uses of the io functions
This commit is contained in:
parent
3b738faa65
commit
b1260e7f5c
3
.gitignore
vendored
3
.gitignore
vendored
@ -6,5 +6,6 @@
|
|||||||
!*.py
|
!*.py
|
||||||
!*.h
|
!*.h
|
||||||
!*.mk
|
!*.mk
|
||||||
!test_*.sh
|
!*.sh
|
||||||
!*-input
|
!*-input
|
||||||
|
!*.txt
|
||||||
|
6
check-for-iofunctions.sh
Executable file
6
check-for-iofunctions.sh
Executable 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
14
iofunctions.txt
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
fscanf
|
||||||
|
fgets
|
||||||
|
fopen
|
||||||
|
freopen
|
||||||
|
fdopen
|
||||||
|
fclose
|
||||||
|
fcloseall
|
||||||
|
fgetpos
|
||||||
|
fseek
|
||||||
|
ftell
|
||||||
|
rewind
|
||||||
|
fprintf
|
||||||
|
fwrite
|
||||||
|
fread
|
Loading…
Reference in New Issue
Block a user