# add\_entry

```
add entry point
     ordinal  - entry point number
                if entry point doesn't have an ordinal
                number, 'ordinal' should be equal to 'ea'
     ea       - address of the entry point
     name     - name of the entry point. If null string,
                the entry point won't be renamed.
     makecode - if 1 then this entry point is a start
                of a function. Otherwise it denotes data bytes.
returns: 0 - entry point with the specified ordinal already exists
         1 - ok

success add_entry(long ordinal, long ea, string name, long makecode);
```


---

# 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/9.0/developer-guide/idc/idc-api-reference/alphabetical-list-of-idc-functions/355.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.
