Reserve the term `len` for string length, some functions used this for an string/array length, others a destination buffer size (even within a single function declaration). Also improve naming consistency across different functions.
Reserve the term `len` for string length, some functions used this for an string/array length, others a destination buffer size (even within a single function declaration). Also improve naming consistency across different functions.