ref: e0e2e9d81b4dbdabb7521dcc68e9f980f26cc3a9 dir: /sys/src/libString/s_unique.c/
#include <u.h> #include <libc.h> #include "String.h" String* s_unique(String *s) { String *p; if(s->ref > 1){ p = s; s = s_clone(p); s_free(p); } return s; }