ref: 6b8bae6a7e94bbbfb15f8c344ac5beee0bc08eda
dir: /sys/src/libc/port/runestrdup.c/
#include <u.h>
#include <libc.h>
Rune*
runestrdup(Rune *s)
{
Rune *ns;
ns = malloc(sizeof(Rune)*(runestrlen(s) + 1));
if(ns == 0)
return 0;
return runestrcpy(ns, s);
}