mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-06-02 02:53:32 +02:00
18 lines
360 B
C++
18 lines
360 B
C++
|
#include <SDL.h>
|
||
|
|
||
|
#include "UtilityClass.h"
|
||
|
|
||
|
extern "C" char* HELP_number_words(int _t)
|
||
|
{
|
||
|
/* C wrapper for UtilityClass::number_words.
|
||
|
* Caller must SDL_free. */
|
||
|
|
||
|
std::string str = help.number_words(_t);
|
||
|
|
||
|
char* buffer = (char*) SDL_malloc(str.size() + 1);
|
||
|
str.copy(buffer, str.size());
|
||
|
buffer[str.size()] = '\0';
|
||
|
|
||
|
return buffer;
|
||
|
}
|