vsp man page

vsp — covert Perl version string into RPM version string


#include <fvsp.h>

char *vsp(const char *input, _Bool shorten);


The vsp() function converts a Perl version value into RPM version string format.

is Perl version string, fraction or dotted one. Empty string is equaled to "0".
is true to cut trailing zero groups. If no digit would remain, empty string will be returned.

Return Value

RPM-compatible version string is returned. Caller is responsible for deallocating the value by free(3).

In case of error, NULL is returned.

See Also

fvsp(1), Fedora::VSP(3pm), version(3pm), free(3)

Referenced By


Explore man page connections for vsp(3).