Subj : Someone run this:
To   : Beta
From : Digital Man
Date : Sat Jun 24 2000 08:01 am

RE: Someone run this:
BY: Beta to Amcleod on Sat Jun 24 2000 12:02 am

>  > Please somebody - run this BAJA mod and give me the results that it displ
>  >
>  >     STR TQBF
>  >     SET TQBF "The quick brown fox jumps over the lazy dog."
>  >     INT C16 C32
>  >     CRC16 C16 TQBF
>  >     CRC32 C32 TQBF
>  >     PRINTF "CRC16 / 32 of [%s] = %ld / %ld\r\n" TQBF C16 C32
>  >     PRINT "Thanks, @SYSOP@!\r\n"
>  >
>  > I'd appreciate it!
>
> Do you realize how much time I spent thinking up that code?????  Your's is
> nicer, but mine worked... :)  Here
>
> The quick brown fox jumps over the lazy dog.
> 1368401385
> 58035
>
> From this code
>
> !include sbbsdefs.inc
> int crc16 crc32
> str bfox
> set bfox "The quick brown fox jumps over the lazy dog."
> CRC16 crc16 bfox
> CRC32 crc32 bfox
> print bfox
> print \r\n
> print crc32
> print \r\n
> print crc16
>
> And you know what?  The Ver3 node shows a different output then my local ver
> 2.3 node...  I'll post it's outputin a sec.. :)
> Beta
>
> This is what the ver 2.3 local node gives me for an output
>
> The quick brown fox jumps over the lazy dog.
> 9705
> 58035

I think the problem is in your code. Use printf (like Angus' example) and you
should see the same results on both versions.

Rob

---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net