Next Previous Contents

# S-Lang Run-Time Library Reference: Version 1.4.0

## John E. Davis, `davis@space.mit.edu`

Jan 26, 2003

## 1. Array Functions

- 1.1 _isnull
- 1.2 _reshape
- 1.3 array_info
- 1.4 array_map
- 1.5 array_sort
- 1.6 init_char_array
- 1.7 length
- 1.8 max
- 1.9 min
- 1.10 reshape
- 1.11 sum
- 1.12 transpose
- 1.13 where

## 2. Associative Array Functions

- 2.1 assoc_delete_key
- 2.2 assoc_get_keys
- 2.3 assoc_get_values
- 2.4 assoc_key_exists

## 3. Functions that Operate on Strings

- 3.1 Sprintf
- 3.2 create_delimited_string
- 3.3 extract_element
- 3.4 is_list_element
- 3.5 is_substr
- 3.6 make_printable_string
- 3.7 sprintf
- 3.8 sscanf
- 3.9 str_delete_chars
- 3.10 str_quote_string
- 3.11 str_replace
- 3.12 str_uncomment_string
- 3.13 strcat
- 3.14 strchop
- 3.15 strchopr
- 3.16 strcmp
- 3.17 strcompress
- 3.18 string_match
- 3.19 string_match_nth
- 3.20 strjoin
- 3.21 strlen
- 3.22 strlow
- 3.23 strncmp
- 3.24 strreplace
- 3.25 strsub
- 3.26 strtok
- 3.27 strtrans
- 3.28 strtrim
- 3.29 strtrim_beg
- 3.30 strtrim_end
- 3.31 strup
- 3.32 substr

## 4. Functions that Manipulate Structures

- 4.1 _push_struct_field_values
- 4.2 get_struct_field
- 4.3 get_struct_field_names
- 4.4 is_struct_type
- 4.5 set_struct_field
- 4.6 set_struct_fields

## 5. Informational Functions

- 5.1 _NARGS
- 5.2 __get_defined_symbols
- 5.3 __is_initialized
- 5.4 _apropos
- 5.5 _function_name
- 5.6 _get_namespaces
- 5.7 _slang_doc_dir
- 5.8 _slang_version
- 5.9 _slang_version_string
- 5.10 get_doc_string_from_file
- 5.11 is_defined

## 6. Mathematical Functions

- 6.1 Conj
- 6.2 Imag
- 6.3 Real
- 6.4 abs
- 6.5 acos
- 6.6 acosh
- 6.7 asin
- 6.8 asinh
- 6.9 atan
- 6.10 atanh
- 6.11 cos
- 6.12 cosh
- 6.13 exp
- 6.14 log
- 6.15 log10
- 6.16 mul2
- 6.17 polynom
- 6.18 set_float_format
- 6.19 sign
- 6.20 sin
- 6.21 sinh
- 6.22 sqr
- 6.23 sqrt
- 6.24 tan
- 6.25 tanh

## 7. Message and Error Functions

- 7.1 error
- 7.2 message
- 7.3 usage
- 7.4 verror
- 7.5 vmessage

## 8. Time and Date Functions

- 8.1 _time
- 8.2 ctime
- 8.3 gmtime
- 8.4 localtime
- 8.5 tic
- 8.6 time
- 8.7 times
- 8.8 toc

## 9. Data-Type Conversion Functions

- 9.1 _slang_guess_type
- 9.2 _typeof
- 9.3 atof
- 9.4 char
- 9.5 define_case
- 9.6 double
- 9.7 int
- 9.8 integer
- 9.9 isdigit
- 9.10 string
- 9.11 tolower
- 9.12 toupper
- 9.13 typecast
- 9.14 typeof

## 10. Stdio File I/O Functions

- 10.1 clearerr
- 10.2 fclose
- 10.3 fdopen
- 10.4 feof
- 10.5 ferror
- 10.6 fflush
- 10.7 fgets
- 10.8 fgetslines
- 10.9 fopen
- 10.10 fprintf
- 10.11 fputs
- 10.12 fread
- 10.13 fseek
- 10.14 ftell
- 10.15 fwrite
- 10.16 pclose
- 10.17 popen
- 10.18 printf

## 11. Low-level POSIX I/O functions

- 11.1 close
- 11.2 dup_fd
- 11.3 fileno
- 11.4 isatty
- 11.5 lseek
- 11.6 open
- 11.7 read
- 11.8 write

## 12. Directory Functions

- 12.1 chdir
- 12.2 chmod
- 12.3 chown
- 12.4 getcwd
- 12.5 listdir
- 12.6 lstat_file
- 12.7 mkdir
- 12.8 readlink
- 12.9 remove
- 12.10 rename
- 12.11 rmdir
- 12.12 stat_file
- 12.13 stat_is

## 13. Functions that parse pathnames

- 13.1 path_basename
- 13.2 path_concat
- 13.3 path_dirname
- 13.4 path_extname
- 13.5 path_is_absolute
- 13.6 path_sans_extname

## 14. System Call Functions

- 14.1 errno
- 14.2 errno_string
- 14.3 getegid
- 14.4 geteuid
- 14.5 getgid
- 14.6 getpid
- 14.7 getppid
- 14.8 getuid
- 14.9 kill
- 14.10 mkfifo
- 14.11 setgid
- 14.12 setpgid
- 14.13 setuid
- 14.14 sleep
- 14.15 system
- 14.16 umask
- 14.17 uname

## 15. Eval Functions

- 15.1 autoload
- 15.2 byte_compile_file
- 15.3 eval
- 15.4 evalfile

## 16. Module Functions

- 16.1 get_import_module_path
- 16.2 import
- 16.3 set_import_module_path

## 17. Debugging Functions

- 17.1 _clear_error
- 17.2 _debug_info
- 17.3 _slangtrace
- 17.4 _trace_function
- 17.5 _traceback

## 18. Stack Functions

- 18.1 __pop_args
- 18.2 __push_args
- 18.3 _pop_n
- 18.4 _print_stack
- 18.5 _stk_reverse
- 18.6 _stk_roll
- 18.7 _stkdepth
- 18.8 dup
- 18.9 exch
- 18.10 pop

## 19. Miscellaneous Functions

- 19.1 __class_id
- 19.2 __class_type
- 19.3 __eqs
- 19.4 __get_reference
- 19.5 __uninitialize
- 19.6 _auto_declare
- 19.7 current_namespace
- 19.8 getenv
- 19.9 implements
- 19.10 putenv
- 19.11 use_namespace

Next Previous Contents