1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

Added talloc_strdup() funcion.

(This used to be commit eea43a5a916eb7f4bef6817ce0aa8051f9145b18)
This commit is contained in:
Tim Potter 2001-05-11 07:03:13 +00:00
parent 91febc38e3
commit c61e75e3e5

View File

@ -158,3 +158,9 @@ void *talloc_memdup(TALLOC_CTX *t, void *p, size_t size)
return newp;
}
/* strdup with a talloc */
char *talloc_strdup(TALLOC_CTX *t, char *p)
{
return talloc_memdup(t, p, strlen(p) + 1);
}