OpenExtensions for z/VM "Q"s and "A"s

Question: How can an application determine which release of LE it is running under? Is there a recommended method?

Answer: Use this function:

#include 
 
int __librel(void);
 
 
Compiler Option:  LANGLVL(EXTENDED)

The function is a language extension, so your program is no longer portable if you use it. Additional information is available in the C for VM Run-Time Library Reference.


For more questions and answers, go to our archive of questions and answers.