I am trying to collect the binary checksum of a package using solvable_lookup_bin_checksum(). But I am not sure how to find the returned unsigned character string length as it contains binary data and it is not NULL terminated(Cannot use tradition string.c function).
Let me know what you suggest how can we calculate the returned unsigned character string length.
Attaching my code snippet i am trying to copy the return string in other unsigned char string, but not able to get correct result because of length issue.
I am trying to collect the binary checksum of a package using solvable_lookup_bin_checksum(). But I am not sure how to find the returned unsigned character string length as it contains binary data and it is not NULL terminated(Cannot use tradition string.c function).
Let me know what you suggest how can we calculate the returned unsigned character string length.
Attaching my code snippet i am trying to copy the return string in other unsigned char string, but not able to get correct result because of length issue.