Table of Contents

NAME

QccSetUserHeader, QccGetQccPackVersion, QccCompareQccPackVersions, QccPrintQccPackVersion - QccPack version informaton

SYNOPSIS

#include "libQccPack.h"

void QccSetUserHeader(const QccString user_header);
void QccGetQccPackVersion(int *major, int *minor, QccString date);
int QccCompareQccPackVersions(int major1, int minor1,int major2 ,int minor2 );
void QccPrintQccPackVersion(FILE *outfile);

DESCRIPTION

QccGetQccPackVersion() retrieves the major revision number, the minor revision number, and the date of the QccPack library.

QccCompareQccPackVersions() compares two sets of version numbers (e.g., two sets of major/minor revision numbers such as those returned by QccGetQccPackVersion()). If the major1/minor1 represents an earlier version of QccPack than the major2/minor2 pair, QccCompareQccPackVersions() returns -1; if major1/minor1 is later than major2/minor2, QccCompareQccPackVersions() returns 1; and if both sets of version numbers are the same, QccCompareQccPackVersions() returns 0.

QccPrintQccPackVersion() converts the major revision number, the minor revision number, and the date of the QccPack library to a nicely formatted string and prints this string to outfile. If a user header has been set by a previous call to QccSetUserHeader(), then the formatted message printed by QccPrintQccPackVersion() starts off with this user-defined header. Thus, user programs can produce an identifying message (program name, copyright, etc.) to be output along with QccPack information. Note that the usage message produced by QccParseParameters(3) on a parsing error includes a call to QccPrintQccPackVersion(), so any defined user header is also included in this usage message. Only one user header can be defined by a program. QccSetUserHeader() must be called after QccInit(3) but before QccParseParameters(3) .

SEE ALSO

QccParseParameters(3) , QccInit(3) , QccPack(3)

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



Get QccPack at SourceForge.net. Fast, secure and Free Open Source software downloads