|
dpkg 1.22.7-3-g89f48
|
Data Structures | |
| struct | deb_version |
| Data structure representing a .deb format version. More... | |
Macros | |
| #define | DEB_VERSION(X, Y) { .major = (X), .minor = (Y) } |
| Constant initializer for a deb_version. | |
| #define | DEB_VERSION_OBJECT(X, Y) (struct deb_version)DEB_VERSION(X, Y) |
| Compound literal for a deb_version. | |
Functions | |
| const char * | deb_version_parse (struct deb_version *version, const char *str) |
| Parse a .deb format version. | |
| #define DEB_VERSION | ( | X, | |
| Y | |||
| ) | { .major = (X), .minor = (Y) } |
Constant initializer for a deb_version.
| #define DEB_VERSION_OBJECT | ( | X, | |
| Y | |||
| ) | (struct deb_version)DEB_VERSION(X, Y) |
Compound literal for a deb_version.
| const char * deb_version_parse | ( | struct deb_version * | version, |
| const char * | str | ||
| ) |
Parse a .deb format version.
It takes a string and parses a .deb archive format version in the form of "X.Y", without any leading whitespace, and ending in either a newline or a NUL. If there is any syntax error a descriptive error string is returned.
| version | The version to return. |
| str | The string to parse. |
References _, deb_version::major, and deb_version::minor.
Referenced by extracthalf(), and read_info().