I have a function that takes in const char*
as argument, but the data I have is Datum(PostgreSQL)
, which I am converting to Uint32
using DatumGetUint32() function
. I now need to convert it to const char*
in C++
. I have looked up online, many different websites but get no conclusive answer. Any help will be appreciated! Thanks in advance.
Edit: This is because I have different functions that I have to pass the data to. Currently, the data is of form Uint32. The function however takes 'const char*' as the parameter. So my guess is to convert Uint32 to char and then pass it to the function using a pointer. But I am unsure how to proceed further. Hope this helps you to understand better!