nodesdk/src/main/napiutil.cc
char * newCString(const std::string& src) {      
      char * cpy = new char[src.length() + 1];
      strncpy(cpy, src.c_str(), src.length());
      cpy[src.length()] = 0;

      return cpy;
}
/**
 * Create a C-string suitable for storing in a settings object from a std:string 
 */
Create a C-string suitable for storing in a settings object from a std:string
Create a C - string suitable for storing in a settings object from a std : string
char * newCString(const std::string& src) {      
      char * cpy = new char[src.length() + 1];
      strncpy(cpy, src.c_str(), src.length());
      cpy[src.length()] = 0;
      return cpy;
}
char * newCString ( const std :: string & src ) { char * cpy = new char [ src . length ( ) + 1 ] ; strncpy ( cpy , src . c_str ( ) , src . length ( ) ) ; cpy [ src . length ( ) ] = 0 ; return cpy ; }
Create a C-string suitable for storing in a settings object from a std:string
Create a C - string suitable for storing in a settings object from a std : string