# MISC functions

## GENERAL

Here you can find general purpose functions.

## TABLE OF CONTENT

- **[dec2str](dec2str.md)** - converts given num as str
- **[defined_func](defined_func.md)** - check if a given function is defined
- **[dump_ctxt](dump_ctxt.md)** - debug function to print the keys available within the called context
- **[exit](exit.md)** - ends the script with the given result code
- **[get_byte_order](get_byte_order.md)** - get byte order of host system
- **[gettimeofday](gettimeofday.md)** - get the number of seconds and microseconds since 1970-01-01
- **[gunzip](gunzip.md)** - decompress given data.
- **[gzip](gzip.md)** - compress given data with gzip
- **[isnull](isnull.md)** - check if a given value is NULL
- **[keys](keys.md)** - returns an array with the keys of a dict
- **[localtime](localtime.md)** - returns an dict(mday, mon, min, wday, sec, yday, isdst, year, hour) based on optional given time in seconds and optinal flag if utc or not.
- **[make_array](make_array.md)** - takes any even number of unnamed arguments and returns an dictionary made from them
- **[make_list](make_list.md)** - takes any number of unnamed arguments and returns an array made from them.
- **[max_index](max_index.md)** - returns the length of an array.
- **[mktime](mktime.md)** - takes seven named arguments sec, min, hour, mday, mon, year, isdst and returns the Unix time.
- **[rand](rand.md)** - returns a pseudo random number.
- **[sleep](sleep.md)** - takes an integer and sleeps the amount of seconds
- **[sort](sort.md)** - sorts the value of a dict/array. WARNING: drops the keys of a dict and returns an array.
- **[typeof](typeof.md)** - returns the type of given unnamed argument.
- **[unixtime](unixtime.md)** - returns the unix time (number of seconds since 1970-01-01).
- **[usleep](usleep.md)** - takes an integer and sleeps the amount of microseconds
