summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-03-14 20:45:16 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-14 21:01:49 +0100
commitdc63e51bd6bf71559829f61030b94c1bfdbf4401 (patch)
tree89e793a8dbb6702093208ab2d70a77eca5105827
parent4c0409c5a2d5abeafb8b115876791ab74440c577 (diff)
downloadlibnitrokey-dc63e51bd6bf71559829f61030b94c1bfdbf4401.tar.gz
libnitrokey-dc63e51bd6bf71559829f61030b94c1bfdbf4401.tar.bz2
Add function comment
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--NitrokeyManager.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 140d4d3..12f4671 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -15,6 +15,13 @@ namespace nitrokey{
std::mutex mex_dev_com;
+ /**
+ * Copies string from pointer to fixed size C-style array. Src needs to be a valid C-string - eg. ended with '\0'.
+ * Throws when source is bigger than destination.
+ * @tparam T type of destination array
+ * @param dest fixed size destination array
+ * @param src pointer to source c-style valid string
+ */
template <typename T>
void strcpyT(T& dest, const char* src){