Originally posted by parksie
Well, the return CopyFile(...); line is smaller, and allows inlining, resulting in smaller, faster code.
Faster...yes
Smaller...NO
inlining means that each occurence of the function call is replaced by the function body - like a macro. This surely does NOT make smaller code...