package com.perforce.client.api; /** * JNI wrappers to stdlib functions. */ class EnvironmentAccess { private static native String nGetenv( String name ); /** * Gets a value from the current environment. * * Searches the list of environment variables for variable <var>name</var>. * The <tt>getenv</tt> function is not case sensitive in Windows 98/Me * and Windows NT/2000/XP. * * @param name Environment variable name * @return the value of the environment table entry containing varname, or * <tt>null</tt> if not found in the environment table. * @see System#getenv */ static String getenv( String name ) { return nGetenv( name ); } // private static native void nSetenv( String name, String value ); // static void setenv( String name, String value ) // { // nSetenv( name, value ); // } private EnvironmentAccess() { } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 4181 | Paul Krause |
Rename //guest/paul_krause/perforce/api/java/wcvm/com/... //guest/paul_krause/perforce/api/java/wcvm/javax/... To //guest/paul_krause/perforce/api/java/wcvm/src-15/... |
||
//guest/paul_krause/perforce/api/java/wcvm/com/perforce/client/api/EnvironmentAccess.java | |||||
#2 | 4130 | Paul Krause | Copy Javadoc from Perforce 2003.2 C/C++ API User's Guide. | ||
#1 | 4073 | Paul Krause | branch com.perforce.api package from michael_bishop | ||
//guest/michael_bishop/P4APIForJava/java/com/perforce/client/api/EnvironmentAccess.java | |||||
#1 | 430 | Michael Bishop |
Initial checkin. Seems to work. Not very much testing. Not very much documentation. Some more commenting needs to take place. But, it's there to experiment with. |