2015-08-16 21:30:44 -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;
|
|
|
|
}
|
|
|
|
|
|
|
|
void uiFreeText(char *s)
|
|
|
|
{
|
|
|
|
free(s);
|
|
|
|
}
|
2018-03-17 22:55:33 -05:00
|
|
|
|
|
|
|
int uiprivStricmp(const char *a, const char *b)
|
|
|
|
{
|
|
|
|
return strcasecmp(a, b);
|
|
|
|
}
|