Yanking headers in Vim

Here's something that caused me a lot of pain before Vim: after I've just finished a C file with several functions, what's the best way to create the header file?

In this demo, I use a named buffer to append-yank the function declarations into the buffer, then put them in a header file.