Next
Previous Contents
S-Lang Run-Time Library Intrinsic Function Reference: Version 2.1.0
John E. Davis,
jed@jedsoft.org
Oct 17, 2008
1.
Preface
2.
Data Types
2.1
Assoc_Type
2.2
List_Type
2.3
String_Type
2.4
Struct_Type
2.5
File_Type
3.
Array Functions
3.1
all
3.2
any
3.3
array_info
3.4
array_map
3.5
array_reverse
3.6
array_shape
3.7
array_sort
3.8
array_swap
3.9
cumsum
3.10
init_char_array
3.11
_isnull
3.12
length
3.13
max
3.14
maxabs
3.15
min
3.16
minabs
3.17
_reshape
3.18
reshape
3.19
sum
3.20
transpose
3.21
where
3.22
wherenot
3.23
wherefirst
3.24
wherelast
4.
Associative Array Functions
4.1
assoc_delete_key
4.2
assoc_get_keys
4.3
assoc_get_values
4.4
assoc_key_exists
5.
Functions that Operate on Strings
5.1
count_char_occurances
5.2
create_delimited_string
5.3
extract_element
5.4
glob_to_regexp
5.5
is_list_element
5.6
is_substr
5.7
make_printable_string
5.8
Sprintf
5.9
sprintf
5.10
sscanf
5.11
strbytelen
5.12
strbytesub
5.13
strcat
5.14
strcharlen
5.15
strchop
5.16
strchopr
5.17
strcmp
5.18
strcompress
5.19
string_match
5.20
string_match_nth
5.21
strjoin
5.22
strlen
5.23
strlow
5.24
strnbytecmp
5.25
strncharcmp
5.26
strncmp
5.27
strreplace
5.28
strsub
5.29
strtok
5.30
strtrans
5.31
strtrim
5.32
strtrim_beg
5.33
strtrim_end
5.34
strup
5.35
str_delete_chars
5.36
str_quote_string
5.37
str_replace
5.38
str_uncomment_string
5.39
substr
5.40
substrbytes
6.
Functions that Operate on Binary Strings
6.1
array_to_bstring
6.2
bstring_to_array
6.3
bstrlen
6.4
count_byte_occurances
6.5
pack
6.6
pad_pack_format
6.7
sizeof_pack
6.8
unpack
7.
Functions that Manipulate Structures
7.1
__add_binary
7.2
__add_string
7.3
__add_typecast
7.4
__add_unary
7.5
get_struct_field
7.6
get_struct_field_names
7.7
is_struct_type
7.8
_push_struct_field_values
7.9
set_struct_field
7.10
set_struct_fields
8.
Functions that Create and Manipulate Lists
8.1
list_append
8.2
list_delete
8.3
list_insert
8.4
list_new
8.5
list_pop
8.6
list_reverse
9.
Informational Functions
9.1
add_doc_file
9.2
_apropos
9.3
_function_name
9.4
__get_defined_symbols
9.5
get_doc_files
9.6
get_doc_string_from_file
9.7
_get_namespaces
9.8
is_defined
9.9
__is_initialized
9.10
_NARGS
9.11
set_doc_files
9.12
_slang_doc_dir
9.13
_slang_version
9.14
_slang_version_string
10.
Mathematical Functions
10.1
abs
10.2
acos
10.3
acosh
10.4
asin
10.5
asinh
10.6
atan
10.7
atan2
10.8
atanh
10.9
ceil
10.10
Conj
10.11
cos
10.12
cosh
10.13
_diff
10.14
exp
10.15
feqs
10.16
fgteqs
10.17
floor
10.18
flteqs
10.19
fneqs
10.20
hypot
10.21
Imag
10.22
isinf
10.23
isnan
10.24
log
10.25
log10
10.26
_max
10.27
_min
10.28
mul2
10.29
nint
10.30
polynom
10.31
Real
10.32
round
10.33
set_float_format
10.34
sign
10.35
sin
10.36
sinh
10.37
sqr
10.38
sqrt
10.39
tan
10.40
tanh
10.41
_ispos
10.42
_isneg
10.43
_isnonneg
11.
Message and Error Functions
11.1
errno
11.2
errno_string
11.3
error
11.4
__get_exception_info
11.5
message
11.6
new_exception
11.7
usage
11.8
verror
11.9
vmessage
12.
Time and Date Functions
12.1
ctime
12.2
gmtime
12.3
localtime
12.4
mktime
12.5
strftime
12.6
_tic
12.7
tic
12.8
_time
12.9
time
12.10
times
12.11
_toc
12.12
toc
13.
Data-Type Conversion Functions
13.1
atof
13.2
atoi
13.3
atol
13.4
atoll
13.5
char
13.6
define_case
13.7
double
13.8
int
13.9
integer
13.10
isdigit
13.11
_slang_guess_type
13.12
string
13.13
tolower
13.14
toupper
13.15
typecast
13.16
_typeof
13.17
typeof
14.
Stdio File I/O Functions
14.1
clearerr
14.2
fclose
14.3
fdopen
14.4
feof
14.5
ferror
14.6
fflush
14.7
fgets
14.8
fgetslines
14.9
fopen
14.10
fprintf
14.11
fputs
14.12
fputslines
14.13
fread
14.14
fread_bytes
14.15
fseek
14.16
ftell
14.17
fwrite
14.18
pclose
14.19
popen
14.20
printf
15.
Low-level POSIX I/O functions
15.1
close
15.2
dup_fd
15.3
fileno
15.4
isatty
15.5
lseek
15.6
open
15.7
read
15.8
write
16.
Directory Functions
16.1
access
16.2
chdir
16.3
chmod
16.4
chown
16.5
getcwd
16.6
hardlink
16.7
listdir
16.8
lstat_file
16.9
mkdir
16.10
readlink
16.11
remove
16.12
rename
16.13
rmdir
16.14
stat_file
16.15
stat_is
16.16
symlink
17.
Functions that Parse Filenames
17.1
path_basename
17.2
path_basename_sans_extname
17.3
path_concat
17.4
path_dirname
17.5
path_extname
17.6
path_get_delimiter
17.7
path_is_absolute
17.8
path_sans_extname
18.
System Call Functions
18.1
getegid
18.2
geteuid
18.3
getgid
18.4
getpid
18.5
getppid
18.6
getuid
18.7
kill
18.8
mkfifo
18.9
setgid
18.10
setpgid
18.11
setuid
18.12
sleep
18.13
system
18.14
umask
18.15
uname
19.
Eval Functions
19.1
_$
19.2
autoload
19.3
byte_compile_file
19.4
eval
19.5
evalfile
19.6
get_slang_load_path
19.7
set_slang_load_path
20.
Qualifier Functions
20.1
qualifier
20.2
__qualifiers
20.3
qualifier_exists
21.
Module Functions
21.1
get_import_module_path
21.2
import
21.3
set_import_module_path
22.
Debugging Functions
22.1
_bofeof_info
22.2
_boseos_info
22.3
_clear_error
22.4
_set_bof_handler
22.5
_set_bos_handler
22.6
_set_eof_handler
22.7
_set_eos_handler
22.8
_slangtrace
22.9
_traceback
22.10
_trace_function
23.
Stack Functions
23.1
dup
23.2
exch
23.3
pop
23.4
__pop_args
23.5
__pop_list
23.6
_pop_n
23.7
_print_stack
23.8
__push_args
23.9
__push_list
23.10
_stkdepth
23.11
_stk_reverse
23.12
_stk_roll
24.
Functions that deal with the S-Lang readline interface
24.1
rline_bolp
24.2
rline_eolp
24.3
rline_call
24.4
rline_del
24.5
rline_get_edit_width
24.6
rline_get_history
24.7
rline_get_line
24.8
rline_get_point
24.9
rline_getkey
24.10
rline_input_pending
24.11
rline_ins
24.12
rline_set_history
24.13
rline_set_line
24.14
rline_set_point
24.15
rline_setkey
24.16
rline_unsetkey
24.17
rline_set_list_completions_callback
24.18
rline_set_completion_callback
25.
Miscellaneous Functions
25.1
_auto_declare
25.2
__class_id
25.3
__class_type
25.4
current_namespace
25.5
_eqs
25.6
getenv
25.7
__get_reference
25.8
implements
25.9
__is_callable
25.10
__is_numeric
25.11
__is_datatype_numeric
25.12
__is_same
25.13
putenv
25.14
_slang_install_prefix
25.15
_slang_utf8_ok
25.16
__uninitialize
25.17
use_namespace
Next
Previous Contents