2018-12-30 16:43:04 -08:00
|
|
|
---
|
|
|
|
|
title: objects / load_object
|
|
|
|
|
---
|
2023-11-25 09:50:24 -08:00
|
|
|
# load_object
|
2018-12-30 16:43:04 -08:00
|
|
|
|
|
|
|
|
### NAME
|
|
|
|
|
|
2018-12-30 16:59:01 -08:00
|
|
|
load_object() - find or load an object by file name
|
2018-12-30 16:43:04 -08:00
|
|
|
|
|
|
|
|
### SYNOPSIS
|
|
|
|
|
|
2018-12-30 16:59:01 -08:00
|
|
|
object load_object( string str );
|
2018-12-30 16:43:04 -08:00
|
|
|
|
|
|
|
|
### DESCRIPTION
|
2018-12-30 16:59:01 -08:00
|
|
|
|
2022-11-13 12:26:20 -05:00
|
|
|
Find the object with the file name 'str'. If the file exists and the
|
|
|
|
|
object hasn't been loaded yet, it is loaded and returned (if possible).
|
|
|
|
|
|
|
|
|
|
### RETURN VALUES
|
|
|
|
|
|
|
|
|
|
load_object() returns the loaded object if it can be loaded (or already
|
|
|
|
|
loaded), otherwise the value 0 will be returned.
|
2018-12-30 16:43:04 -08:00
|
|
|
|
|
|
|
|
### SEE ALSO
|
|
|
|
|
|
2022-11-13 12:26:20 -05:00
|
|
|
file_name(3), find_object(3), stat(3)
|
2019-10-19 01:03:49 -07:00
|
|
|
|