mirror of
https://github.com/lifegpc/c-utils.git
synced 2026-06-06 13:18:57 +08:00
Initialize
This commit is contained in:
16
cpp2c.h
Normal file
16
cpp2c.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user