Hakan Axheim

Hakan Axheim

  • 2k
  • 197
  • 22.6k

Functionality for modulo 0xFFFF

Feb 7 2023 12:41 PM


I have a question regardning modulo 0xFFFF.

In my program which is a C program I read from a file a long XML string that is ended by checksum value.
When I read the requirement I shall read all characters from the string and add them to a total sum and then perform a modulo 0xFFFF. For me it will be the wrong checksum.

Are there anybody that can help me with a C source code to perform this kind of functionality?

Big Spender

Answers (2)