in reply to inserting few lines after matching a string?

Fun with one-liners:
perl -pi -e 's/(printf\("hello buddy..\\n"\);\s+)/$1char \*point = new + char\[10\];\n/' file.txt

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)