2015-04-10 12:24:34 -05:00
|
|
|
// 10 april 2015
|
|
|
|
#import "uipriv_darwin.h"
|
|
|
|
|
|
|
|
char *uiDarwinNSStringToText(NSString *s)
|
|
|
|
{
|
|
|
|
char *out;
|
|
|
|
|
|
|
|
out = strdup([s UTF8String]);
|
|
|
|
if (out == NULL) {
|
|
|
|
fprintf(stderr, "memory exhausted in uiDarwinNSStringToText()\n");
|
|
|
|
abort();
|
|
|
|
}
|
|
|
|
return out;
|
|
|
|
}
|
2015-04-10 16:06:59 -05:00
|
|
|
|
|
|
|
void uiFreeText(char *s)
|
|
|
|
{
|
|
|
|
free(s);
|
|
|
|
}
|