From b57c6bc906b991c2ac71422508bf603db4f96abc Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 18 Apr 2025 23:02:16 -0400 Subject: share: contrib: Add pointer style notes Signed-off-by: Ian Moffett --- share/misc/contrib | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'share') 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: -- cgit v1.2.3