mirror of
https://github.com/diegocr/libnix.git
synced 2025-12-08 14:58:32 +00:00
12 lines
205 B
C
12 lines
205 B
C
#include <libintl.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
|
|
static char* dom;
|
|
|
|
char* textdomain(const char* domainname) {
|
|
if (dom) free(dom);
|
|
if (!(dom=strdup(domainname))) return 0;
|
|
return dom;
|
|
}
|