mirror of
https://github.com/sigmasternchen/crap-libs
synced 2025-03-15 15:48:56 +00:00
20 lines
363 B
C
20 lines
363 B
C
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
#include "../oop/oop.h"
|
|
#include "strbuilder.h"
|
|
|
|
int main(void) {
|
|
Strbuilder_t* builder = new Strbuilder("Hallo");
|
|
|
|
builder->add(builder, " Welt");
|
|
builder->add(builder, "!");
|
|
builder->build(builder);
|
|
|
|
const char* string = builder->get(builder);
|
|
printf("%s\n", string);
|
|
|
|
builder->destruct(builder);
|
|
|
|
return 0;
|
|
}
|