diff options
author | Alexander Gorrod <alexander.gorrod@mongodb.com> | 2015-05-08 05:34:43 +0000 |
---|---|---|
committer | Alexander Gorrod <alexander.gorrod@mongodb.com> | 2015-05-08 05:34:43 +0000 |
commit | cddb4b8f5a193e32d1400963cd177fe47c8570df (patch) | |
tree | dade044e688956af69505fc796244f229d40241c /src/third_party/wiredtiger/src/include/misc.i | |
parent | 3a8bcdfb23ab85b57e5da308fb4d3c607ce77a49 (diff) | |
download | mongo-cddb4b8f5a193e32d1400963cd177fe47c8570df.tar.gz |
Import wiredtiger-wiredtiger-2.5.3-486-g4f9aa1c.tar.gz from wiredtiger branch mongodb-3.2
Diffstat (limited to 'src/third_party/wiredtiger/src/include/misc.i')
-rw-r--r-- | src/third_party/wiredtiger/src/include/misc.i | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/include/misc.i b/src/third_party/wiredtiger/src/include/misc.i index 53f08b3cbeb..98facff02b9 100644 --- a/src/third_party/wiredtiger/src/include/misc.i +++ b/src/third_party/wiredtiger/src/include/misc.i @@ -7,6 +7,17 @@ */ /* + * __wt_strdup -- + * ANSI strdup function. + */ +static inline int +__wt_strdup(WT_SESSION_IMPL *session, const char *str, void *retp) +{ + return (__wt_strndup( + session, str, (str == NULL) ? 0 : strlen(str), retp)); +} + +/* * __wt_verbose -- * Verbose message. */ |