blob: 7810c1e396ba4e4c7ef28927cee8b34048c5ea94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#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;
}
|