Template Function c4::detail::scan_one

Function Documentation

template<typename T>
inline size_t c4::detail::scan_one(csubstr str, const char *type_fmt, T *v)

scans a string using the given type format, while at the same time allowing non-null-terminated strings AND guaranteeing that the given string length is strictly respected, so that no buffer overflows might occur.