From 7393db6692c861bc66164c0dd9b83f23a554775b Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Wed, 26 Nov 2014 23:17:55 +0100 Subject: changes, improvements and cleanup --- userspace/checker.c | 1 + 1 file changed, 1 insertion(+) (limited to 'userspace/checker.c') 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; -- cgit v1.2.3