From ab88599682ed9de899dabf9d818116e6c70b36f9 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Mon, 9 May 2016 12:36:15 +0200 Subject: [PATCH] base: document the return value of String::length --- repos/base/include/util/string.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repos/base/include/util/string.h b/repos/base/include/util/string.h index 31b64c24f2..08cc28840f 100644 --- a/repos/base/include/util/string.h +++ b/repos/base/include/util/string.h @@ -524,6 +524,9 @@ class Genode::String strncpy(_buf, str, _length); } + /** + * Return length of string, including the terminating null character + */ size_t length() const { return _length; } static constexpr size_t capacity() { return CAPACITY; }