gnu_get_libc_version, gnu_get_libc_release - get glibc version and release
#define _GNU_SOURCE #include <gnu/libc-version.h> const char *gnu_get_libc_version(void); const char *gnu_get_libc_release(void);
The function gnu_get_libc_release() returns a string indicates the release status of the glibc version available on the system. This will be a string such as stable.
$ ./a.out GNU libc version: 2.8 GNU libc release: stable
#include <gnu/libc-version.h> #include <stdlib.h> #include <stdio.h> int main(int argc, char *argv[]) { printf("GNU libc version: %s\n", gnu_get_libc_version()); printf("GNU libc release: %s\n", gnu_get_libc_release()); exit(EXIT_SUCCESS); }
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |