how to create cp command using C