Go to the source code of this file.
Detailed Description
acsLL provides support for Unsigned Long Long:
- printing unsigned long long out (converting to/form unsigned long long from/to string)
- calculating modules
Define Documentation
Macros ACS_LLU and ACS_LLU_PRINTF provide support for printing unsigned long long. Usage: ACE_OS::(f/s)printf ("Example :" ACS_LLU "\n", ACS_LLU_PRINTF(a));
#define ACS_LLU_MOD |
( |
|
a, |
|
|
|
b | |
|
) |
| | a%b |
Macro for calculating modules.
#define ACS_LLU_PRINTF |
( |
|
a |
) |
a |
#define ACS_LLU_SCANF |
( |
|
a |
) |
a |
Macro ACS_LLU_SCANFF is used as ACS_LLU_PRINTF but in a scanf function and it provides support for unsigned long long. Usage: scanf (buf, "Example :" ACS_LLU , ACS_LLU_SCANF(a));
Function Documentation
char* LLU2String |
( |
unsigned long |
long |
) |
|
Converts from unsigned long long to a character string.
- Parameters:
-
| Unsigned | long long value. |
- Returns:
- Unsigned long long value in string format.
unsigned long long string2LLU |
( |
char * |
str |
) |
|
Converts from string to unsigned long long. Conversion function exists for platforms that support unsigned long long and for platforms that do not support unsigned long long.
- Parameters:
-
| str | - string to be converted to unsigned long long |