COX Library misc.cox


!

int postfix operator !(int i ) precedence postfix ++;

symbol type
postfix operator (prototype)
declaration
int postfix operator !(int i ) precedence postfix ++;
description
i Fakultaet
calculates the factorial of the argument
example
   print 6!;
  
remarks
0 is returned for negative arguments.
-1 is returned, if the result exceedes the range of the int32 data type.
location
"misc.h", line 118

int postfix operator !(int i )

symbol type
postfix operator
declaration
int postfix operator !(int i )
description
location
"misc.cox", line 421


Clock

VECTOR nullfix operator Clock;

symbol type
nullfix operator (prototype)
declaration
VECTOR nullfix operator Clock;
description
Clock returns a six element row vector containing
the current time and date in decimal form:

[year month day hour minute seconds] = Clock;
example
    t = Clock;
    // operation //
    print etime(Clock, t);

  
remarks
The first five elements are whole numbers. The sixth element
is accurate to several digits beyond the decimal point.
location
"misc.h", line 127
related topics
See section etime.
see also
C library functions time(), localtime(), ftime() and gettimeofday()

VECTOR nullfix operator Clock

symbol type
nullfix operator
declaration
VECTOR nullfix operator Clock
description
location
"misc.cox", line 447


CorrectPathName

function void CorrectPathName(char *pc)

symbol type
function
declaration
void CorrectPathName(char *pc)
description
replaces backslashes by slashes or slashes by backslashes
remarks
the behaviour depends on the operating system
location
"misc.cox", line 40


PrintDLLNames

function void PrintDLLNames(void);

symbol type
function (prototype)
declaration
void PrintDLLNames(void);
description
Interpreter intrinsics
location
"misc.h", line 12


ReleaseAllCallHooks

function void ReleaseAllCallHooks(void);

symbol type
function (prototype)
declaration
void ReleaseAllCallHooks(void);
description
location
"misc.h", line 15


SetInfoFiles

void prefix operator SetInfoFiles(const char *pc ) precedence 28;

symbol type
prefix operator (prototype)
declaration
void prefix operator SetInfoFiles(const char *pc ) precedence 28;
description
Sets the search path for info-files.
location
"misc.h", line 61

void prefix operator SetInfoFiles(const char *pc )

symbol type
prefix operator
declaration
void prefix operator SetInfoFiles(const char *pc )
description
location
"misc.cox", line 239


SetPreConversionHook

function void SetPreConversionHook( void (*f)(void) );

symbol type
function (prototype)
declaration
void SetPreConversionHook( void (*f)(void) );
description
location
"misc.h", line 16


UnloadDLL

function int UnloadDLL( const char *);

symbol type
function (prototype)
declaration
int UnloadDLL( const char *);
description
location
"misc.h", line 13


UnloadDLLs

function int UnloadDLLs(void);

symbol type
function (prototype)
declaration
int UnloadDLLs(void);
description
location
"misc.h", line 14


_testcall

function double _testcall(int i, char c, double d );

symbol type
function (prototype)
declaration
double _testcall(int i, char c, double d );
description
Debug-Hilfen
location
"misc.h", line 19

function double _testcall(int i, char c, double d )

symbol type
function
declaration
double _testcall(int i, char c, double d )
description
Debug-Hilfen
location
"misc.cox", line 517


_testcall2

function double _testcall2(double (*pfct)(double, double), double x, double y );

symbol type
function (prototype)
declaration
double _testcall2(double (*pfct)(double, double), double x, double y );
description
location
"misc.h", line 20

function double _testcall2(double (*pfct)(double, double), double x, double y )

symbol type
function
declaration
double _testcall2(double (*pfct)(double, double), double x, double y )
description
location
"misc.cox", line 522


atoi

function int atoi(const char *);

symbol type
function (prototype)
declaration
int atoi(const char *);
description
location
"misc.cox", line 19


etime

double prefix operator etime(const VECTOR &t1, const VECTOR &t0) precedence 28;

symbol type
prefix operator (prototype)
declaration
double prefix operator etime(const VECTOR &t1, const VECTOR &t0) precedence 28;
description
etime(t1,t0) returns the time in seconds that has elapsed between
the time vectors t1 and t0.
The two vectors must be six elements long, in
the format returned by Clock:

t = [year month day hour minute seconds]
example
    t0 = Clock;
    // operation //
    print etime(Clock,t0)

  
remarks
As currently implemented, it won't work across month or year
boundaries.
location
"misc.h", line 149
related topics
See section Clock.

double prefix operator etime(unsigned long t1, unsigned long t0);

symbol type
prefix operator (prototype)
declaration
double prefix operator etime(unsigned long t1, unsigned long t0);
description
etime(t1,t0) returns the time in seconds that has elapsed between
the clock values t1 and t0.
example
    t0 = clock();
    // operation //
    print etime(clock(),t0)

  
remarks
As currently implemented, it won't work across month or year
boundaries.
location
"misc.h", line 170
see also
C library function clock()

double prefix operator etime(const VECTOR &t1, const VECTOR &t0)

symbol type
prefix operator
declaration
double prefix operator etime(const VECTOR &t1, const VECTOR &t0)
description
location
"misc.cox", line 493

double prefix operator etime(unsigned long t1, unsigned long t0)

symbol type
prefix operator
declaration
double prefix operator etime(unsigned long t1, unsigned long t0)
description
location
"misc.cox", line 499


exp

function double exp(double );

symbol type
function (prototype)
declaration
double exp(double );
description
location
"misc.cox", line 17


getenv

function char *getenv(const char *);

symbol type
function (prototype)
declaration
char *getenv(const char *);
description
location
"misc.cox", line 18


help

void prefix operator help(const char *s) precedence 4;

symbol type
prefix operator (prototype)
declaration
void prefix operator help(const char *s) precedence 4;
description
Gives a list of all help nodes matching the argument. If there is
only one the contents of this node will be printed.
example

   help "FFT";
   help "::1";
  
remarks

All info files in the directory specified by the info
entry in the configuration file or given by the INFOPATH environment
variable are scanned.
The keyword may contain '?' and '*' as special characters.
If more than one keyword matches the search pattern a list of matching
keywords will be printed.
If two ore more info files contain the same keyword, you have to pass
the name of the info file as the first argument.
If no keyword in the info files matches exactly a fault tolerant search
method will be used.
Specific menu entries of the last help page can be accessed using "::n" as
argument. Where n ist the number of the desired menu entry.
location
"misc.h", line 86

void prefix operator help(const char *InfoFile, const char *s );

symbol type
prefix operator (prototype)
declaration
void prefix operator help(const char *InfoFile, const char *s );
description
Gives a list of all help nodes matching the argument. If there is
only one the contents of this node will be printed.
example

   help("/usr/local/cox/info","svd");
  
remarks

only the specified directories are scanned.
Specific menu entries of the last help page can be accessed using "::n" as
argument. Where n ist the number of the desired menu entry.
location
"misc.h", line 107

void prefix operator help(const char *s)

symbol type
prefix operator
declaration
void prefix operator help(const char *s)
description
location
"misc.cox", line 346

void prefix operator help(const char *InfoFile, const char *s )

symbol type
prefix operator
declaration
void prefix operator help(const char *InfoFile, const char *s )
description
location
"misc.cox", line 388

void nullfix operator help;

symbol type
nullfix operator (prototype)
declaration
void nullfix operator help;
description
Help function.
example
   help;

   help "help";

  
remarks

All info files in the directory specified by the info
entry in the configuration file or given by the INFOPATH environment
variable are scanned.
The keyword may contain '?' and '*' as special characters.
If more than one keyword matches the search pattern a list of matching
keywords will be printed.
If two ore more info files contain the same keyword, you have to pass
the name of the info file as the first argument.
If no keyword in the info files matches exactly a fault tolerant search
method will be used.
Specific menu entries of the last help page can be accessed using "::n" as
argument. Where n ist the number of the desired menu entry.
location
"misc.h", line 64

void nullfix operator help

symbol type
nullfix operator
declaration
void nullfix operator help
description
location
"misc.cox", line 256


log

function double log(double );

symbol type
function (prototype)
declaration
double log(double );
description
location
"misc.cox", line 16


print

void prefix operator print(double d) precedence 4;

symbol type
prefix operator (prototype)
declaration
void prefix operator print(double d) precedence 4;
description
prints a double value.
example
   print 23.456;
  
remarks
the width depends on the number.
location
"misc.h", line 23

void prefix operator print(unsigned long int d);

symbol type
prefix operator (prototype)
declaration
void prefix operator print(unsigned long int d);
description
prints a unsigned long int value.
example
   print 12345UL;
  
remarks
the width depends on the number.
location
"misc.h", line 31

void prefix operator print(long int d);

symbol type
prefix operator (prototype)
declaration
void prefix operator print(long int d);
description
prints a long int value.
example
   print -12345L;
  
remarks
the width depends on the number.
location
"misc.h", line 39

void prefix operator print(const char *s);

symbol type
prefix operator (prototype)
declaration
void prefix operator print(const char *s);
description
prints a zero terminated character string.
example
   print "hello world\n";
  
remarks
the width depends only on the length of the argument.
location
"misc.h", line 47

void prefix operator print(const void *s);

symbol type
prefix operator (prototype)
declaration
void prefix operator print(const void *s);
description
prints a pointer value
example
   print &I;

location
"misc.h", line 55

void prefix operator print(double d)

symbol type
prefix operator
declaration
void prefix operator print(double d)
description
location
"misc.cox", line 218

void prefix operator print(unsigned long int d)

symbol type
prefix operator
declaration
void prefix operator print(unsigned long int d)
description
location
"misc.cox", line 222

void prefix operator print(long int d)

symbol type
prefix operator
declaration
void prefix operator print(long int d)
description
location
"misc.cox", line 226

void prefix operator print(const char *s)

symbol type
prefix operator
declaration
void prefix operator print(const char *s)
description
location
"misc.cox", line 230

void prefix operator print(const void *s)

symbol type
prefix operator
declaration
void prefix operator print(const void *s)
description
location
"misc.cox", line 234


sin

function double sin(double );

symbol type
function (prototype)
declaration
double sin(double );
description
location
"misc.cox", line 15


spawnlp

function int spawnlp( int, const char *, const char *, ... );

symbol type
function (prototype)
declaration
int spawnlp( int, const char *, const char *, ... );
description
location
"misc.cox", line 14


system

function int system(const char *);

symbol type
function (prototype)
declaration
int system(const char *);
description
location
"misc.cox", line 13


tic

void nullfix operator tic;

symbol type
nullfix operator (prototype)
declaration
void nullfix operator tic;
description
Set the stopwatch timer.
example
   tic; operation; print toc;

  
remarks
As currently implemented, it won't work across month or year boundaries.
location
"misc.h", line 187
see also
C library function clock()

void nullfix operator tic

symbol type
nullfix operator
declaration
void nullfix operator tic
description
location
"misc.cox", line 507


toc

double nullfix operator toc;

symbol type
nullfix operator (prototype)
declaration
double nullfix operator toc;
description
Read the stopwatch timer.
toc, by itself, returns the elapsed time since tic was used.
example
   tic; operation; print toc;

  
remarks
As currently implemented, it won't work across month or year boundaries.
location
"misc.h", line 200
see also
C library function clock()

double nullfix operator toc

symbol type
nullfix operator
declaration
double nullfix operator toc
description
location
"misc.cox", line 511


toupper

function int toupper(int );

symbol type
function (prototype)
declaration
int  toupper(int );
description
location
"misc.cox", line 12


Function Index

!

  • !, postfix operator
  • _

  • _testcall, function
  • _testcall2, function
  • a

  • atoi, function
  • c

  • Clock, nullfix operator
  • CorrectPathName, function
  • e

  • etime, prefix operator
  • exp, function
  • g

  • getenv, function
  • h

  • help, nullfix operator
  • help, prefix operator
  • l

  • log, function
  • p

  • print, prefix operator
  • PrintDLLNames, function
  • r

  • ReleaseAllCallHooks, function
  • s

  • SetInfoFiles, prefix operator
  • SetPreConversionHook, function
  • sin, function
  • spawnlp, function
  • system, function
  • t

  • tic, nullfix operator
  • toc, nullfix operator
  • toupper, function
  • u

  • UnloadDLL, function
  • UnloadDLLs, function