github.com/opencontainers/runc@v1.2.0-rc.1.0.20240520010911-492dc558cdd6/libcontainer/nsenter/getenv.h (about)

     1  #ifndef NSENTER_GETENV_H
     2  #define NSENTER_GETENV_H
     3  
     4  /*
     5   * Returns an environment variable value as a non-negative integer, or -ENOENT
     6   * if the variable was not found or has an empty value.
     7   *
     8   * If the value can not be converted to an integer, or the result is out of
     9   * range, the function bails out.
    10   */
    11  int getenv_int(const char *name);
    12  
    13  #endif /* NSENTER_GETENV_H */