#creates patch file
diff -c hello.c.old hello.c >hello.patch
#patch the file
patch < hello.patch