Difference between revisions of "GNU C library"

From Teknologisk videncenter
Jump to: navigation, search
m
m (Checking which GNU C Library version)
Line 5: Line 5:
 
#include <gnu/libc-version.h>
 
#include <gnu/libc-version.h>
  
int main (void) {
+
int main(void) {
   printf("GNU C Library version is %s\n", gnu_get_libc_version ());
+
   printf("GNU C Library version is %s\n", gnu_get_libc_version());
 +
  printf("GNU C Library release is %s\n", gnu_get_libc_release());
 
   return 0;  
 
   return 0;  
 
}
 
}
 
</source>
 
</source>
 +
 
=Links=
 
=Links=
 
*[https://www.gnu.org/software/libc/manual/pdf/libc.pdf The GNU C Library Reference Manual - GNU.org] (Loads PDF)
 
*[https://www.gnu.org/software/libc/manual/pdf/libc.pdf The GNU C Library Reference Manual - GNU.org] (Loads PDF)
 
**[https://www.gnu.org/software/libc/manual/html_node/index.html Same as HTML]
 
**[https://www.gnu.org/software/libc/manual/html_node/index.html Same as HTML]
 
[[Category:Linux]][[Category:GNU]]
 
[[Category:Linux]][[Category:GNU]]

Revision as of 06:37, 13 December 2018

Checking which GNU C Library version

To check which GCLIB you are using run this program.

#include <stdio.h>
#include <gnu/libc-version.h>

int main(void) {
  printf("GNU C Library version is %s\n", gnu_get_libc_version());
  printf("GNU C Library release is %s\n", gnu_get_libc_release());
  return 0; 
}

Links