1 #ifndef _TALLOC_EXTRA_H
2 #define _TALLOC_EXTRA_H
6 /* Like talloc_strndup, but take an extra parameter for the internal talloc
7 * name (for debugging) */
10 talloc_strndup_named_const (void *ctx, const char *str,
11 size_t len, const char *name);
13 /* use the __location__ macro from talloc.h to name a string according to its
16 #define talloc_strndup_debug(ctx, str, len) talloc_strndup_named_const (ctx, str, len, __location__)