summaryrefslogtreecommitdiff
path: root/deps/fff/examples/weak_linking/src/error.c
blob: 5e7db631c125ef0a2e7722572284db6d0c0b2b37 (plain)
1
2
3
4
5
6
7
8
9
10
#include <assert.h>
#include "error.h"

char* runtime_error_nice_print( const char* msg )
{
    char* buffer = malloc(512);
    snprintf(buffer, 512, "Got error: %s", msg );
    buffer[511] = 0;
    return buffer;
}