:
# findcstr - find a string in a C source file

CASE=

useage() {
	echo "useage: findcstr [-y] string"
	exit 1
}

[ "$1" ] || useage

[ "$1" = "-y" ] && {
	[ "$2" ] || useage
	CASE=-y
	shift
}
find . -name \*\.\[ch\] -print | xargs grep $CASE "$1"
