Skip to content

sivalid

Category: string
GitHub: cute_string.h


Returns true if the string is a static, stable, unique pointer from sintern.

#define sivalid(s) (((cf_intern_t*)s - 1)->cookie == CF_INTERN_COOKIE)
Parameters Description
s The string.

Remarks

This is not a secure method -- do not use it on any potentially dangerous strings. It's designed to be very simple and fast, nothing more.

sintern
sintern_range
sinuke
silen