[#bsl-stol-02] = xref:bsl.adoc[bsl]::stol :relfileprefix: ../ :mrdocs: Same as `stol` for `wstring`. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- long stol( xref:bsl/wstring.adoc[wstring] const& str, std::size_t* pos = 0, int base = 10); ---- == Return Value `long` value parsed from `str` == Parameters [cols="1,4"] |=== | Name| Description | *str* | string to parse | *pos* | optional output for the index after the parsed value | *base* | numeric base for parsing (0 or 2..36) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#