1VSP(3)                     Library Functions Manual                     VSP(3)
2
3
4

NAME

6       vsp - covert Perl version string into RPM version string
7

SYNOPSIS

9       #include <fvsp.h>
10
11       char *vsp(const char *input, _Bool shorten);
12

DESCRIPTION

14       The  vsp()  function  converts  a  Perl  version value into RPM version
15       string format.
16
17       input  is Perl version string, fraction or dotted one. Empty string  is
18              equaled to "0".
19
20       shorten
21              is  true  to cut trailing zero groups. If no digit would remain,
22              empty string will be returned.
23

RETURN VALUE

25       RPM-compatible version string is returned. Caller  is  responsible  for
26       deallocating the value by free(3).
27
28       In case of error, NULL is returned.
29

SEE ALSO

31       fvsp(1), Fedora::VSP(3pm), version(3pm), free(3)
32
33
34
35                                                                        VSP(3)
Impressum