Skip to content

Commit 877e83d

Browse files
committed
1.1: added Makefile and cmdline args
1 parent c141881 commit 877e83d

File tree

5 files changed

+594
-535
lines changed

5 files changed

+594
-535
lines changed

LICENSE

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Public Domain Mark 1.0
2+
No Copyright
3+
4+
This work has been identified as being free of known restrictions
5+
under copyright law, including all related and neighboring rights.
6+
7+
You can copy, modify, distribute and perform the work, even for
8+
commercial purposes, all without asking permission. See Other
9+
Information below.
10+
11+
Other Information
12+
13+
The work may not be free of known copyright restrictions in all
14+
jurisdictions.
15+
16+
Persons may have other rights in or related to the work, such as
17+
patent or trademark rights, and others may have rights in how the
18+
work is used, such as publicity or privacy rights.
19+
20+
In some jurisdictions moral rights of the author may persist beyond
21+
the term of copyright. These rights may include the right to be
22+
identified as the author and the right to object to derogatory
23+
treatments.
24+
25+
Unless expressly stated otherwise, the person who identified the work
26+
makes no warranties about the work, and disclaims liability for all
27+
uses of the work, to the fullest extent permitted by applicable law.
28+
29+
When using or citing the work, you should not imply endorsement by
30+
the author or the person who identified the work.

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
CC = gcc
2+
CFLAGS = -Wall -std=c99
3+
LDFLAGS = -lm -s
4+
PROGS = hemingenc hemingdec
5+
6+
all: $(PROGS)
7+
8+
hemingenc: union_heming.c
9+
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
10+
11+
hemingdec: union_deheming.c
12+
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
13+
14+
clean: $(PROGS)
15+
rm -f $^

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
Familiarization with the Hamming method of error-correcting coding, which allows to detect and automatically correct errors that occur during the transmission of information.
1+
# HAMMING ENC/DEC
2+
3+
Familiarization with the Hamming method of error-correcting coding, which allows to detect and automatically correct errors that occur during the transmission of information.
4+
5+
# USAGE
6+
7+
```sh
8+
./hemingenc input.file output.hmng [8/12/16/32/64]
9+
./hemingdec input.hmng output.file [8/12/16/32/64]
10+
```
11+
12+
2019

0 commit comments

Comments
 (0)