ref: d06ed886c61c93037129a6693ab3db07c070f291
dir: /libc/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;
setmalloctag(ns, getcallerpc(&s));
return runestrcpy(ns, s);
}