libthinkpad  2.6
https://github.com/libthinkpad
Static Public Member Functions | List of all members
ThinkPad::Utilities::CommonUtils Class Reference

Static Public Member Functions

static const char * fileRead (const char *path)
 
static const int intRead (const char *path)
 
static int intWrite (const char *path, int value)
 

Member Function Documentation

int ThinkPad::Utilities::CommonUtils::intWrite ( const char *  path,
int  value 
)
static

The logarithm of a number with base 10 returns the rough number of digits, we add +1 for the number of digits, +1 for the null terminator safety

we also need to check if the value is 0; log(0) is not defined


The documentation for this class was generated from the following files: