C Collections

cstring · Section 3

cstr_at

cstr_at - return the character at a given index

C Collections (libccollections, -lccollections)

#include <ccollections/cstring.h>
 
cstr_at(s, idx);

This macro just forwards its arguments to cstring_at().

s     cstr to query
idx   Zero-based character index

The character at idx, or '\0' if idx >= length

cstring_at(3)