News:

MyKidsDiary.in :: Capture your kids magical moment and create your Online Private Diary for your kids

Main Menu

Cyclic Redundancy Check (CRC)

Started by aruljothi, Mar 31, 2009, 11:20 AM

Previous topic - Next topic

aruljothi

#include<stdio.h>
#include<string.h>
main()
{
char s[20],g[20],c[20],r[20];
int k,i,p,n;
static int cnt,j,m;
clrscr();
printf("Enter the message polynomial in binary format");
gets(s);
printf("Enter the generating polynomial in binary format");
gets(g);
k=strlen(s);
p=strlen(g);
for(i=k;i<k+p-1;i++)
s='0';
s='