str_for_entname (
STRING*, ENTITY*);
Sets the string to the name assigned through WED of the given
entity pointer. Only the first 20 characters of the entity name are available.
If the entity is nameless, f.i. when it was created through ent_create, the name of the model is returned instead.
Parameters:
STRING* - String to receive the entity
name, or NULL for returning a temporary string.
ENTITY* - Entity pointer.
Returns:
STRING* that contains the entity name.
Speed:
Fast
Example (lite-C):
STRING* s = "";
...
str_for_entname(s,my);
See also:
str_for_entfile
► latest
version online