Created
May 29, 2023 12:55
-
-
Save bindiego/f98c36df023991bea3bf27771ff68d2d to your computer and use it in GitHub Desktop.
Check glibc version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <gnu/libc-version.h> | |
int main(int argc, char *argv[]) | |
{ | |
// Print glibc version | |
printf("GNU libc version: %s\n", gnu_get_libc_version()); | |
exit(EXIT_SUCCESS); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build: | |
g++ -std=c++11 glibc.c -o glibc | |
run: build | |
./glibc | |
.PHONY: run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment