# get\_struc\_by\_idx

get structure ID by structure index structure index returns: -1 if bad structure index is passed otherwise returns structure ID. 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\_by\_idx(long index);
