About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
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:
#includeint __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.