VSP(3)
π VSP(3) π
okay bestie, welcome to the Library Functions Manual section for vsp β¨ this is a C library function, and it's giving "glow-up translator": it takes a Perl version string and turns it into an RPM version string. no cap.
πΈ NAME πΈ
vsp β covert Perl version string into RPM version string
(yes it says "covert" not "convert", that's literally what's written, we're not editing the source material π )
π¦ SYNOPSIS π¦
#include <fvsp.h>
char *vsp(const char *input, _Bool shorten);
β¨ DESCRIPTION β¨
so the vsp() function does one job and it does it iconically: it converts a Perl version value into RPM version string format. that's it. that's the whole personality.
inputβ this is your Perl version string, bestie. could be a fraction, could be a dotted one, whatever vibe it's serving. and listen: an empty string is equaled to"0", so don't come at it with nothing and expect chaos.shortenβ when this is true, it cuts off the trailing zero groups. so satisfying, honestly. but heads up: if no digit would remain after all that trimming, you get an empty string back. zero digits, zero string, periodt.
π RETURN VALUE π
you get back an RPM-compatible version string. slay.
π¨ IMPORTANT BESTIE ALERT π¨ the caller is responsible for deallocating the returned value withfree(3). that's on you, not onvsp(). don't be the person who leaks memory, it's not the vibe.
and if something goes wrong? NULL is returned. π that's the error signal. respect it.
π₯ SEE ALSO π₯
π that's the page π
fr fr you made it to the end, main character energy π this was the VSP(3) page from the Library Functions Manual β go forth and convert those version strings responsibly. bye bestie π«ΆπΈπ
π¦ where this page comes from
- fedora 43: fvsp-devel 0.1-24.fc43 Β· LGPL-3.0-or-later
- fedora 43: fvsp-devel 0.1-24.fc43 Β· LGPL-3.0-or-later
- fedora 44: fvsp-devel 0.1-25.fc44 Β· LGPL-3.0-or-later
- fedora 44: fvsp-devel 0.1-25.fc44 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms