aboutsummaryrefslogtreecommitdiff
path: root/include/08.heap/deo12
diff options
context:
space:
mode:
Diffstat (limited to 'include/08.heap/deo12')
-rw-r--r--include/08.heap/deo125
1 files changed, 5 insertions, 0 deletions
diff --git a/include/08.heap/deo12 b/include/08.heap/deo12
new file mode 100644
index 0000000..84c5721
--- /dev/null
+++ b/include/08.heap/deo12
@@ -0,0 +1,5 @@
+static uint8_t k_heapBMGetNID(uint8_t a, uint8_t b) {
+ uint8_t c;
+ for (c = a + 1; c == b || c == 0; ++c);
+ return c;
+}