On 23Jun2019 09:01, Cameron Simpson <c...@cskk.id.au> wrote:
So how about this:
  #define UNSET_CHAR_PTR "<unset>"
and to use UNSET_CHAR_PTR instead of (uintptr_t)-1 and (unsigned long)-1.

Actually a macro wouldn't do, particularly if the macro gets used in another file. You'd need a static string.

 char UNSET_CHAR_PTR[] = "<unset>";

so that there'd be just once instead of it.

Otherwise the suggestion remains.

Cheers,
Cameron Simpson <c...@cskk.id.au>

Reply via email to