findfunc 316 Bytes
Newer Older
1 2
#!/bin/sh
name="$1"
3
if [ "$name" = "" ] ; then
4 5 6 7 8 9 10
    echo -n 'Function: '
    read name;
fi

while [ "$name" != "" ]
do
    find $(dirname $0)/../ -name \*.spec | xargs -l1024 grep -i $name
11
    find $(dirname $0)/../ -name \*.[ch] | xargs grep -i "WINAPI[[:space:]]\+$name"
12 13 14
    echo -n 'Function: '
    read name
done