FLINT3.7.0-dev

gr_vec_str_count_entries

Synopsis#include <flint/gr_vec.h>
int gr_vec_str_count_entries(slong * count, const char * s, gr_ctx_t ctx)source

Sets *count to the number of top-level entries of the bracketed list at the start of s, without evaluating them. Separators are counted only at the outermost nesting level of parentheses, brackets and braces, and characters after the closing bracket are ignored. Returns GR_UNABLE if the list is not well-formed.

Cite this page

The FLINT team, “gr_vec_str_count_entries (gr_vec.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_vec/gr_vec_str_count_entries.html (generated 2026-10-20).