mirror of
https://github.com/lifegpc/c-utils.git
synced 2026-06-06 05:08:45 +08:00
17 lines
344 B
C++
17 lines
344 B
C++
#ifndef _UTILS_CPP2C_H
|
|
#define _UTILS_CPP2C_H
|
|
|
|
#include <string>
|
|
|
|
namespace cpp2c {
|
|
/**
|
|
* @brief Convert string to char*
|
|
* @param inp Input string.
|
|
* @param out The pointer to output buffer. Need free memory by using free.
|
|
* @return true if succeeded.
|
|
*/
|
|
bool string2char(std::string inp, char*& out);
|
|
}
|
|
|
|
#endif
|