summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-04-18 23:02:16 -0400
committerIan Moffett <ian@osmora.org>2025-04-18 23:02:16 -0400
commitb57c6bc906b991c2ac71422508bf603db4f96abc (patch)
tree83eb9c1ee5d1bcfca8bd4958383d4eb4712dc4cd
parent2bbc5efc7bbf57b21f93d616dbc87ba0cadee56f (diff)
share: contrib: Add pointer style notes
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--share/misc/contrib8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/misc/contrib b/share/misc/contrib
index 6f93fb7..1560f37 100644
--- a/share/misc/contrib
+++ b/share/misc/contrib
@@ -87,6 +87,14 @@ a pointer, like, for example:
uint8_t *ptr = NULL;
...
+--
+The preferred pointer style is:
+
+void *p = ...;
+
+-- Not:
+
+void* p = ...;
-- or if you have for example, some sort of counter value
that must have a start: