FUNCTION::STRTOL(3stap)
π NAME π
okay bestie, meet function::strtol β aka strtol, aka the little guy whose whole job is to Convert a string to a long. that's it. that's the gig. no cap. β¨
(and if you're wondering what page this even is β it's FUNCTION::STRTOL(3stap), one page in the SystemTap Tapset Reference, a collection of standard strinβ¦ well, the header kinda cuts off right there, but you get the vibe π)
πΈ SYNOPSIS πΈ
strtol:long(str:string,base:long)
look at her. clean. iconic. takes a string, takes a base, hands you back a long. periodt. π
β¨ ARGUMENTS β¨
strβ the string to convert. literally the number-in-disguise you want translated. π¦baseβ the base to use. as in which number base. you're picking the math flavour here. π
π DESCRIPTION π
so the whole point: this function converts the string representation of a number into an actual integer. glow-up complete. πβ¨
the base parameter is the part where you tell it which number base to assume for the string. like, 16 for hex, 8 for octal, 2 for binary. so if your string is living its hex life, you say 16 and she gets it. main character energy fr fr. π₯
π SEE ALSO π
not me ending the page like a proper manpage or whatever π β this one's from the SystemTap Tapset Reference, Verβ¦ (cut off, the header ran out of room π), dated September 2026. mwah. bye bestie, go convert some strings. ππ
π¦ where this page comes from
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms