a-p-jo / filecopy

Simple C99 program and API for copying files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Utility Usage

  1. Compile all .c files in the repo. For example, on *nix systems , you might run :
git clone https://github.com/a-p-jo/filecopy.git
cc filecopy/*.c -o fcp -Ofast -flto # Compile to exe named "fcp"
rm -r filecopy # Repo no longer needed, delete it
  1. Get the help menu :
$ ./fcp
fcp v1.0
Usage : filecopy <src> [dst (optional, stdout by default)] [overwrite dst? (y/n) (optional)]

Copies the contents of src to dst (if given, else to stdout).
If dst does not exist, creates it. If it pre-exists, if 'y' is specified, continues.
If 'n' is specified, aborts. Else, asks for permission before overwriting.

Example : fcp archlinux.iso /dev/sda y

About

Simple C99 program and API for copying files.

License:GNU General Public License v3.0


Languages

Language:C 100.0%