cksum from code

Is there a way to calculate “cksum” from C code.
Or to capture the output from a spawned cksum?
(QNX4.25)

popen()

ccitt checksum source code are avaible on the web.
If you can’t find it I could dig it out and post it.

“Alex” <acellarius@systems104.co.za> wrote in message
news:3AB284F3.CB0BCDD1@systems104.co.za

Is there a way to calculate “cksum” from C code.
Or to capture the output from a spawned cksum?
(QNX4.25)

Mario Charest wrote:

popen()

ccitt checksum source code are avaible on the web.
If you can’t find it I could dig it out and post it.

Thanks Mario-I have source like this.
I was hoping there was this qnx_cksum() function
that takes a filename and spits out the cksum, same as the
cksum utilitity, but looks I’m out of luck.

The POSIX checksum algorithm should be coded in GNU, Linux, FreeBSD,
etc.

Alex wrote:

Mario Charest wrote:

popen()

ccitt checksum source code are avaible on the web.
If you can’t find it I could dig it out and post it.

Thanks Mario-I have source like this.
I was hoping there was this qnx_cksum() function
that takes a filename and spits out the cksum, same as the
cksum utilitity, but looks I’m out of luck.