This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
frostbite/snowlib/Helpers.cpp
2020-02-06 00:23:46 +00:00

16 lines
243 B
C++

#include "Helpers.h"
#include <cstring>
namespace Helpers
{
const char* strjoin(const char* s1, const char* s2)
{
int len = strlen(s1) + strlen(s2);
char* buf = new char[len+1];
strcpy(buf, s1);
strcat(buf, s2);
return buf;
}
}