mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
28 lines
292 B
C++
28 lines
292 B
C++
#include <Core/Core.h>
|
|
|
|
using namespace Upp;
|
|
|
|
void CApiFunction(char *c)
|
|
{
|
|
strcpy(c, "Hello");
|
|
}
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
StringBuffer b;
|
|
b.SetLength(200);
|
|
CApiFunction(b);
|
|
b.Strlen();
|
|
String x = b;
|
|
DUMP(x);
|
|
|
|
b = x;
|
|
b[1] = 'a';
|
|
x = b;
|
|
DUMP(x);
|
|
|
|
b = x;
|
|
b.Cat('!');
|
|
x = b;
|
|
DUMP(x);
|
|
}
|