findfunc 316 B

1234567891011121314
  1. #!/bin/sh
  2. name="$1"
  3. if [ "$name" = "" ] ; then
  4. echo -n 'Function: '
  5. read name;
  6. fi
  7. while [ "$name" != "" ]
  8. do
  9. find $(dirname $0)/../ -name \*.spec | xargs -l1024 grep -i $name
  10. find $(dirname $0)/../ -name \*.[ch] | xargs grep -i "WINAPI[[:space:]]\+$name"
  11. echo -n 'Function: '
  12. read name
  13. done