blob: cfe6f7bb78ab76780b7f35a7327333a6b1232fc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# $1: c file to examine
# $2: write file
cfile="$1"
writefile="$2"
if [ ! -f $cfile ]; then
>&2 echo "ERROR: $cfile not found"
shift; continue
fi
sed -n "s/^.*\/\*\s*RETURN VALUE:\s*\([0-9]*\)\s*\*\//\1/p" $1 > $2
|