# get\_struc\_idx

get structure index by structure ID structure ID returns: -1 if bad structure ID is passed otherwise returns structure index. See [get\_first\_struc\_idx](https://docs.hex-rays.com/8.4/developer-guide/idc/idc-api-reference/alphabetical-list-of-idc-functions/371)() for the explanation of structure indices and IDs.

long get\_struc\_idx(long id);
