Find all files with the extensions .c and .h in the current directory and its subdirectories, and list the names of the files that contain the string 'printf'.
find . -name "*.[ch]" | xargs grep -l 'printf'