diff options
author | osku@127.(none) <> | 2005-09-29 13:39:27 +0300 |
---|---|---|
committer | osku@127.(none) <> | 2005-09-29 13:39:27 +0300 |
commit | 4676fc94c61f8cbe76b1dbc3f2f6e8991ac7943a (patch) | |
tree | cd4ba72229fd3380d9c81d9744ad3bdeeb5a75ff /innobase/include | |
parent | 3ae0c860701f4555c811a349b8ab6434516b11f6 (diff) | |
parent | ad5243671176832bff058bbb3f6dcf10211315b5 (diff) | |
download | mariadb-git-4676fc94c61f8cbe76b1dbc3f2f6e8991ac7943a.tar.gz |
Merge 127.(none):/home/osku/mysql/5.0/clean
into 127.(none):/home/osku/mysql/5.0/revcpy
Diffstat (limited to 'innobase/include')
-rw-r--r-- | innobase/include/ut0mem.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/innobase/include/ut0mem.h b/innobase/include/ut0mem.h index 8f109a64b55..b9bbe0b5c92 100644 --- a/innobase/include/ut0mem.h +++ b/innobase/include/ut0mem.h @@ -122,6 +122,7 @@ ut_strcmp(const void* str1, const void* str2); Copies up to size - 1 characters from the NUL-terminated string src to dst, NUL-terminating the result. Returns strlen(src), so truncation occurred if the return value >= size. */ + ulint ut_strlcpy( /*=======*/ @@ -131,6 +132,18 @@ ut_strlcpy( ulint size); /* in: size of destination buffer */ /************************************************************************** +Like ut_strlcpy, but if src doesn't fit in dst completely, copies the last +(size - 1) bytes of src, not the first. */ + +ulint +ut_strlcpy_rev( +/*===========*/ + /* out: strlen(src) */ + char* dst, /* in: destination buffer */ + const char* src, /* in: source buffer */ + ulint size); /* in: size of destination buffer */ + +/************************************************************************** Compute strlen(ut_strcpyq(str, q)). */ UNIV_INLINE ulint |