Changeset 688 in MondoRescue for trunk/tools
- Timestamp:
- Jul 17, 2006, 3:44:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/quality
r146 r688 28 28 29 29 # How many sprintf/strcat/strcpy vs asprintf are they 30 for s in asprintf sprintf strcat strcpy fgets malloc_string MAX_STR_LENgoto; do30 for s in asprintf sprintf strcat strcpy strncpy fgets malloc malloc_string MAX_STR_LEN getcwd goto; do 31 31 echo "monodrescue $s usage : " 32 for i in `find . -name '*.c' -o -name '*.h' | egrep -v '\.svn' | egrep -v '/\*' | xargs grep -r -c -w $s | egrep -v ":0$"`; do 32 tot=0 33 for i in `find . -name '*.c' -o -name '*.h' | egrep -v '\.svn|/\*|monitas' | xargs grep -r -c -w $s | egrep -v ":0$"`; do 33 34 echo " === $i" 35 ((tot=$tot+`echo $i | cut -d: -f2`)) 34 36 done 37 echo "total $s usage : $tot" 35 38 done 36 39
Note:
See TracChangeset
for help on using the changeset viewer.