Aegis  4.25.D505
Functions
Misc

Miscellaneous functions. More...

Functions

int exeext (const char *)
double fstrcmp (const char *, const char *)
int gmatch (const char *pattern, const char *candidate)
int gmatch (const nstring &pattern, const nstring &candidate)
unsigned long r250 (void)
long skip_unlucky (long)
 Skip unlucky numbers.

Detailed Description

Miscellaneous functions.


Function Documentation

int exeext ( const char *  )
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:
patternThe pattern to be matched. See glob(3) for a description of file name patterns.
candidateThe string to be tested for matching against the pattern.
Returns:
int; 1 for a match, 0 for no match, -1 for invalid pattern.
int gmatch ( const nstring pattern,
const nstring candidate 
)

The gmatch() function checks whether the "candidate" argument matches the "pattern" argument, which is a shell wildcard pattern.

Parameters:
patternThe pattern to be matched. See glob(3) for a description of file name patterns.
candidateThe 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.

long skip_unlucky ( long  )

Skip unlucky numbers.