It assumes no count will be greater than 256. If that's too small, change the three 8s to 16s
Actually, the 8s give a max count of 255 (0b00000000 .. 0b11111111, where 0b11111111 == 255)
16s will give you counts up to 65535 (0b1111111111111111).
In reply to Re^4: Memory usage while tallying instances of lines in a .txt file
by RonW
in thread Memory usage while tallying instances of lines in a .txt file
by TJCooper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |