View Single Post
  #1   (View Single Post)  
Old 21st November 2015
alex_b83 alex_b83 is offline
Port Guard
 
Join Date: Oct 2015
Posts: 11
Default Test small C program in BSD OS

Hello.

I've written small program in C language.
This program copies specified part of source file and saves it to destination file.

I have GNU/Linux OS installed on my computer.
Program works fine in Linux.
It also works with big files (size >= 2 GiB) in 64-bit Linux.

Help me please to test if program works in BSD OS (FreeBSD, NetBSD, OpenBSD),
if you have this OS installed on your computer.

Instruction on program usage and how to build it from source:
https://gitlab.com/open_source/partcp

Download ZIP archive with source code:
https://gitlab.com/open_source/partc...zip?ref=master

View source code:
https://gitlab.com/open_source/partc...aster/partcp.c

Program usage example:

I want to copy 1234 bytes from file "source.bin" starting at offset 5678.
Result must be saved to file "destination.bin".
I will use this command:

partcp source.bin 5678 1234 destination.bin


Thank you.
Reply With Quote