#include "ma.h"
#include "maxtoa.h"
Classes | |
struct | div_t |
Defines | |
#define | RAND_MAX 0x7fffffff |
Functions | |
int | atoi (const char *string) |
Converts ASCII number to integer. | |
long | atol (const char *string) |
div_t | div (int numer, int denom) |
int | axtoi (const char *hexStg) |
Hexadecimal ASCII number to integer. | |
unsigned long | strtoul (const char *nptr, char **endptr, int base) |
unsigned long long | strtoull (const char *nptr, char **endptr, int base) |
char | ConvertUtf8ToLatin1 (const char *utf8, int *pnBytes) |
int | StringEqual_utf8_latin1 (const char *utf8, const char *latin1) |
int | find (const char *a, char b) |
int | rand (void) |
Generate and return 31-bit random value. | |
int | urand (void) |
Generate and return 32-bit random value. | |
void | srand (unsigned int seed) |
Initialize random number generator. | |
int | abs (int x) |
|
|
|
Converts ASCII number to integer.
|
|
|
|
|
|
Hexadecimal ASCII number to integer.
|
|
|
|
|
|
Converts one UTF8 character to Latin-1.
|
|
Compares a UTF8 string with a Latin-1 string.
|
|
Finds the first occurance of a character in a string
|
|
Generate and return 31-bit random value. Returns a pseudo-random integral number in the range 0 to RAND_MAX. |
|
Generate and return 32-bit random value. Returns a pseudo-random number in the range 0 to 0xFFFF FFFF. |
|
Initialize random number generator. The pseudo-random number generator is initialized using the argument passed as seed. For every different seed value used in a call to srand, the pseudo-random number generator can be expected to generate a different succession of results in the subsequent calls to rand. Two different initializations with the same seed, instructs the pseudo-random generator to generate the same succession of results for the subsequent calls to rand in both cases. If seed is set to 1, the generator is reinitialized to its initial value and produces the same values as before any call to rand or srand. In order to generate random-like numbers, srand is usually initialized to some distinctive value, like those related with the execution time.
|
|
Returns the absolute value of x. |