diff options
author | Ian Moffett <ian@osmora.org> | 2025-04-18 23:02:16 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-04-18 23:02:16 -0400 |
commit | b57c6bc906b991c2ac71422508bf603db4f96abc (patch) | |
tree | 83eb9c1ee5d1bcfca8bd4958383d4eb4712dc4cd /share | |
parent | 2bbc5efc7bbf57b21f93d616dbc87ba0cadee56f (diff) |
share: contrib: Add pointer style notes
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'share')
-rw-r--r-- | share/misc/contrib | 8 |
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: |