summaryrefslogtreecommitdiff
path: root/userspace/checker.c
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-11-26 23:17:55 +0100
committerMichal Idziorek <m.i@gmx.at>2014-11-26 23:17:55 +0100
commit7393db6692c861bc66164c0dd9b83f23a554775b (patch)
treed60c9deb33630d5fb6117c7c1bbc098e62a66f28 /userspace/checker.c
parent9c8cfc2e52b0446f7cab14325028075760869b45 (diff)
changes, improvements and cleanup
Diffstat (limited to 'userspace/checker.c')
-rw-r--r--userspace/checker.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/userspace/checker.c b/userspace/checker.c
index e5352f6..ac0bcc9 100644
--- a/userspace/checker.c
+++ b/userspace/checker.c
@@ -9,6 +9,7 @@ int ch; /* Each character read. */
int checksum = 0; /* The checksum mod 2^16. */
int count=0;
+printf("this will calc a simple checksum of the enered text\nPress Left Control + D to signify end of file \n",checksum,count);
while ((ch = getc(fp)) != EOF) {
checksum = (checksum >> 1) + ((checksum & 1) << 15);
checksum +=(int) ch;