Miscellaneous functions.
More...
Detailed Description
Miscellaneous functions.
Function Documentation
| double fstrcmp |
( |
const char * |
, |
|
|
const char * |
|
|
) |
| |
| int gmatch |
( |
const char * |
pattern, |
|
|
const char * |
candidate |
|
) |
| |
The gmatch() function checks whether the "candidate" argument matches the "pattern" argument, which is a shell wildcard pattern.
- Parameters:
-
| pattern | The pattern to be matched. See glob(3) for a description of file name patterns. |
| candidate | The string to be tested for matching against the pattern. |
- Returns:
- int; 1 for a match, 0 for no match, -1 for invalid pattern.
The gmatch() function checks whether the "candidate" argument matches the "pattern" argument, which is a shell wildcard pattern.
- Parameters:
-
| pattern | The pattern to be matched. See glob(3) for a description of file name patterns. |
| candidate | The string to be tested for matching against the pattern. |
- Returns:
- int; 1 for a match, 0 for no match, -1 for invalid pattern.
| unsigned long r250 |
( |
void |
| ) |
|
The r250 function is used to obtain a pseudo random number. All 32 bits are significant. The generator has a minimum period of 2^250.