User Tools

Site Tools


notes:sysprog:projects:wut2

This is an old revision of the document!


SYSPROG PROJECT: Writing Unix Tools 2.0 (wut2)

Objective:

Input under each section examples of your program running using different options

binary.c

parity.c

endian.c

checksum.c

twoscomp.c

addition.c

bitmask.c - Andrei Bratkovski


Examples

base 2 (default)
./bitmask -M “10110111” -s “10011010 11010001”
10010010
10010001

base 8
./bitmask -M “66” -s “77 77” -b 8
66
66

delimiter example
./bitmask -M “66” -s “77s77” -b 8 -d “s”
66
66

base 10
./bitmask -M “31 -s “30” -b10
30

base 16
./bitmask -M “FE” -s “FF” -b16
0xFE

rotate.c

invert.c

notes/sysprog/projects/wut2.1518543050.txt.gz · Last modified: 2018/02/13 17:30 by abratkov