ultimatepp/tutorial/Core02/main.cpp
mdelfede 263ff5f895 changed svn layout
git-svn-id: svn://ultimatepp.org/upp/trunk@281 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-06-07 22:31:27 +00:00

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);
}