Skip to content

silen

Category: string
GitHub: cute_string.h


Returns the length of an intern'd string.

#define silen(s) (((cf_intern_t*)s - 1)->len)
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. The return value is calculated in constant time, as opposed to calling CF_STRLEN (strlen).

sintern
sintern_range
sivalid
sinuke