vsp - Man Page

covert Perl version string into RPM version string

Synopsis

#include <fvsp.h>

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

Description

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

input

is Perl version string, fraction or dotted one. Empty string is equaled to "0".

shorten

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

fvsp(1).