text: //
  // Created by fabia on 19.01.2022.
  //
  
  #include "strings.h"
  
  const char* AllocateString(const std::string& str, int32_t& size) {
      size_t stringSize = str.size();
      size = (int32_t) stringSize;
      char* writable = new char[stringSize + 1];
      std::copy(str.begin(), str.end(), writable);
      writable[stringSize] = '\0';
      return writable;
  }