Available_Native_Calls_Page (3) - Linux Manuals

Available_Native_Calls_Page: Available Calls

NAME

Available_Native_Calls_Page - Available Calls Embryo provides a minimal set of native calls that can be used within any Embryo script.

Those calls are detailed here.

Note:

Some of the 'core' functions here are also described in the full Small documentation given

Todo

Finish this section.

Argument Functions

numargs

Returns the number of arguments passed to a function. Useful when dealing with variable argument lists.

getarg(arg, index=0)

Retrieves the argument number arg. If the argument is an array, use index to specify the index of the array to return.

setargs(arg, index=0, value)

Sets the argument number arg to the given arg. index specifies the index of arg to set if arg is an array.

String Functions

Functions that work on strings.

atoi

Translates an number in string form into an integer.

fnmatch

Buggered if I know what this does?

strcmp

String comparing function.

Float Functions

float

atof

float_mul

float_div

float_add

float_sub

fract

round

float_cmp

sqrt

pow

log

sin

cos

tan

abs

Returns the absolute value of the given float.

Time Functions

seconds()

date

Random Functions

rand()

Returns a random integer.

randf()

Returns a random float.