Diff for /libelwix/example/test_crc.c between versions 1.1.2.1 and 1.2

version 1.1.2.1, 2024/10/10 23:58:36 version 1.2, 2024/10/12 16:07:17
Line 1 Line 1
 #include <stdio.h>  #include <stdio.h>
   #include <string.h>
 #include <sys/types.h>  #include <sys/types.h>
 #include <elwix.h>  #include <elwix.h>
   
Line 22  main(int argc, char **argv) Line 23  main(int argc, char **argv)
                                 crcCalc(line, strlen(line), 161, 0, 0x1D0F, 0x0));                                  crcCalc(line, strlen(line), 161, 0, 0x1D0F, 0x0));
                 printf("crc16 %x vs ccitt %x crc16_xy %x crc_16_xmodem %x\n", crc_16(line, strlen(line)), crc16_ccitt(line, strlen(line)),                   printf("crc16 %x vs ccitt %x crc16_xy %x crc_16_xmodem %x\n", crc_16(line, strlen(line)), crc16_ccitt(line, strlen(line)), 
                                 crc16_xy(line, strlen(line)), crc_16_xmodem(line, strlen(line)));                                  crc16_xy(line, strlen(line)), crc_16_xmodem(line, strlen(line)));
                printf("crc32 %x vs %x\n", crc_32(line, strlen(line)), crc32tbl(0, line, strlen(line)));                printf("crc32 %x vs %x, eth %x\n", crc_32(line, strlen(line)), crc32tbl(0, line, strlen(line)), crcEther(line, strlen(line)));
                 printf("crc8 %x vs %x\n", crc_8(line, strlen(line)), crc8tbl(0, line, strlen(line)));
         }          }
   
         fclose(f);          fclose(f);

Removed from v.1.1.2.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>