summaryrefslogtreecommitdiff
path: root/src/user/include/knob
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/include/knob')
-rw-r--r--src/user/include/knob/block.h7
-rw-r--r--src/user/include/knob/user.h3
2 files changed, 9 insertions, 1 deletions
diff --git a/src/user/include/knob/block.h b/src/user/include/knob/block.h
new file mode 100644
index 0000000..2aa2b36
--- /dev/null
+++ b/src/user/include/knob/block.h
@@ -0,0 +1,7 @@
+#ifndef KNOB_BLOCK_H
+#define KNOB_BLOCK_H
+
+void blockcpy(void *to, const void *from, uint32_t size);
+bool blockequ(void *a, void *b, uint32_t size) __attribute__ ((__pure__));
+
+#endif \ No newline at end of file
diff --git a/src/user/include/knob/user.h b/src/user/include/knob/user.h
index c4ec7db..45caab4 100644
--- a/src/user/include/knob/user.h
+++ b/src/user/include/knob/user.h
@@ -6,7 +6,8 @@
void tell_user_sz(const char *sz);
void tell_user_n(uint32_t n);
-//return value and max_length both include null terminator
+//return value and max_length don't include null terminator
+//returns the real length of the string
uint32_t ask_user_line_sz(char *sz, uint32_t max_length);
#endif \ No newline at end of file