Skip to content

Commit

Permalink
add crc32
Browse files Browse the repository at this point in the history
  • Loading branch information
serkonda7 committed Mar 3, 2024
1 parent 85d3298 commit 55b3722
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions tasks/c/crc32/expected.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
414fa339
7 changes: 7 additions & 0 deletions tasks/c/crc32/main.bt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import hash.crc32

fun main() {
text := 'The quick brown fox jumps over the lazy dog'
sum := crc32.checksum(text.bytes())
println(sum.hex())
}
7 changes: 6 additions & 1 deletion task_template.xml → template.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
=={{header|Bait}}==
<syntaxhighlight lang="bait">
// here goes the code
// insert code
</syntaxhighlight>

{{out}}
<pre>
// insert output
</pre>

0 comments on commit 55b3722

Please sign in to comment.