Hint 0.1.0
Loading...
Searching...
No Matches
Macros
String Safety

Macros

#define hint_null_terminated_string_arg(x)
 The N th argumnt is a null terminated string.
 

Detailed Description

Macro Definition Documentation

◆ hint_null_terminated_string_arg

#define hint_null_terminated_string_arg (   x)

The N th argumnt is a null terminated string.

This may be applied to a function that takes a char * or char const * at referenced argument N.

It indicates that the passed argument must be a C-style null-terminated string. Specifically, the presence of the attribute implies that, if the pointer is non-null, the function may scan through the referenced buffer looking for the first zero byte.