|
NAMEelftc_version —
return a project-wide version identifier string
LIBRARYlibrary “libelftc”SYNOPSIS#include <libelftc.h>
const char *
DESCRIPTIONFunctionelftc_version () returns a project-wide
identifier string that encodes the source revision of the project source tree.
The returned identifier has four space-separated fields:
RETURN VALUESFunctionelftc_program_version () returns a pointer to an
internal character buffer.
EXAMPLESTo retrieve and print the current toolchain version identifier, use:#include <sys/types.h> #include <libelftc.h> (void) printf("%s\n", elftc_version()); On the HEAD branch of the project's sources, when checked out using Subversion and compiled on a NetBSD host, this would print: “elftoolchain HEAD NetBSD
svn:REVINFO”
where REVINFO would be the current revision information for
the project source tree.
ERRORSFunctionelftc_program_version () always succeeds.
Visit the GSP FreeBSD Man Page Interface. |