Sign in to follow this  

Convert const char* to char[32]

Recommended Posts

How do I convert a const char* to char[32]? I've this code:
MD5Check = md5.getMD5Digest();
And here MD5Check is a char[32] and md5.getMD5Digest() is a const char*, now this gives a error (ofcourse) because I need to convert md5.getMD5Digest() to a char[32]. But when I do something like this:
MD5Check = (char[32])md5.getMD5Digest();
It also gives a error, so my question is how to do this correctly?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this