# get\_first\_struc\_idx

```
get index of first structure type
returns: -1 if no structure type is defined
         index of first structure type.
         Each structure type has an index and ID.
         INDEX determines position of structure definition
          in the list of structure definitions. Index 1
          is listed first, after index 2 and so on.
          The index of a structure type can be changed any
          time, leading to movement of the structure definition
          in the list of structure definitions.
         ID uniquely denotes a structure type. A structure
          gets a unique ID at the creation time and this ID
          can't be changed. Even when the structure type gets
          deleted, its ID won't be reused in the future.

long get_first_struc_idx();
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hex-rays.com/8.4/developer-guide/idc/idc-api-reference/alphabetical-list-of-idc-functions/371.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
