title: Convert uint32 to const char* C++
body: <p>I have a function that takes in <code>const char*</code> as argument, but the data I have is <code>Datum(PostgreSQL)</code>, which I am converting to <code>Uint32</code> using <code>DatumGetUint32() function</code>. I now need to convert it to <code>const char*</code> in <code>C++</code>. I have looked up online, many different websites but get no conclusive answer. Any help will be appreciated! Thanks in advance. </p>
  
  <p>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!</p>