1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-08 15:52:53 +02:00
2010-01-24 09:19:39 +00:00

24 lines
405 B
C

#include "stdio.h"
#include "snd.h"
#include "stdlib.h"
#include "xlisp.h"
#include "string.h"
void snd_fail(char *msg)
{
char *bigger = (char *) malloc(strlen(msg) + 16);
if (!bigger) xlfail("no memory");
strcpy(bigger, "(snd)");
strcat(bigger, msg);
xlfail(bigger);
// NOTE: there is a memory leak here
}
void snd_warn(char *msg)
{
stdputstr(msg);
stdputstr("\n");
}