mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-05 17:56:34 +00:00
Displays an animation while joining Shows version mismatch error in join message screen Shows mod mismatch error in join message screen (displays mismatching mods now) Displays party is full / host closed connection in join message screen Added string builder
16 lines
471 B
C
16 lines
471 B
C
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include "string_builder.h"
|
|
|
|
struct StringBuilder* string_builder_create(int bufferLength) {
|
|
struct StringBuilder* builder = malloc(sizeof(struct StringBuilder));
|
|
builder->string = malloc(sizeof(char) * bufferLength);
|
|
builder->string[0] = '\0';
|
|
builder->bufferLength = bufferLength;
|
|
return builder;
|
|
}
|
|
|
|
void string_builder_destroy(struct StringBuilder* builder) {
|
|
free(builder->string);
|
|
free(builder);
|
|
}
|