Using CopyFile?

How can copy all *.c files using CopyFile function?
According to http://msdn.microsoft.com/en-us/library/windows/desktop/aa363851(v=vs.85).aspx , the function doesn't accept wildcards, so you'll have to use FindFirstFile()/FindNextFile() to obtain all filenames that fit the criteria and then call CopyFile() for each one of these.
Thanks for help
Topic archived. No new replies allowed.