Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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


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:

Download ZIP archive with source code:

View source code:

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Small dmesg annoyance v10 ... jb_daefo FreeBSD Ports and Packages 0 3rd January 2015 04:16 PM
Small MPLS Test Network Built With OpenBSD J65nko News 1 8th September 2013 07:40 PM
firewalling with a small soekris appliance wesley OpenBSD Security 2 6th June 2011 05:29 PM
small guide on mutt & fdm qmemo Guides 0 17th May 2011 10:54 PM

All times are GMT. The time now is 08:02 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick