Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4f52349

Browse files
alejandro-colomarhallyn
authored andcommitted
lib/string/README: Document *_a() macros
Signed-off-by: Alejandro Colomar <[email protected]>
1 parent 0b75eb7 commit 4f52349

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/string/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ General guidelines:
44
- If there's an upper-case macro that wraps a function, use the macro
55
if possible. These use macro magic to add safety.
66

7+
- If there's a *_a() macro that wraps an API, use the macro if
8+
possible. These use countof() to add bounds safety.
9+
710
- x*() functions wrap a function of the same name without the 'x'.
811
These wrappers exit on error instead of returning NULL.
912
They simplify program code. Avoid them in library code.

0 commit comments

Comments
 (0)