Skip to content

Instantly share code, notes, and snippets.

@mre
Created January 2, 2018 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mre/ebdabc8dff6759def25893c8478c7bf4 to your computer and use it in GitHub Desktop.
Save mre/ebdabc8dff6759def25893c8478c7bf4 to your computer and use it in GitHub Desktop.
Darwin/macOS copyfile example usage
#include <copyfile.h>
int main()
{
copyfile("test.txt", "copy.txt", 0, COPYFILE_ALL);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment