forked from starnakin/IronGOLEM
11 lines
124 B
Plaintext
11 lines
124 B
Plaintext
strdup(str)
|
|
{
|
|
local out;
|
|
|
|
out = galloc(strlen(str) + 1);
|
|
if (out == 0)
|
|
return (0);
|
|
strcpy(out, str);
|
|
return (out);
|
|
}
|