# Strcpy Xrefs in IDA Domain API

**URL:** <https://community.hex-rays.com/t/strcpy-xrefs-in-ida-domain-api/848>\
**Category:** Domain API\
**Created:** [October 28, 2026, 2:45pm UTC](https://community.hex-rays.com/t/strcpy-xrefs-in-ida-domain-api/848 "2026-10-28T14:45:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jershmagersh](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jershmagersh](https://community.hex-rays.com/u/jershmagersh)\
**Post date:** [October 28, 2026, 2:45pm UTC](https://community.hex-rays.com/t/strcpy-xrefs-in-ida-domain-api/848/1 "2026-10-28T14:45:54Z")

</div>

Hello!

Is this the only possible way to acquire callsites for pseudocode intrinsics in the IDADomain API?

```auto
from ida_domain import Database

# Get handle to database
db = Database()

# Enumerate all functions within database 
for func in db.functions:

    # Get pseudocode for each function
    pseudo = db.functions.get_pseudocode(func)
    
    # Find all strcpy calls within function pseudocode
    strcpy_calls = pseudo.find_calls(target_name="strcpy")

    # If any calls are found print out callsites
    if len(strcpy_calls) > 0:
        for strcpy in strcpy_calls:
            print(f"strcpy call found: 0x{strcpy.ea:2x}")

```

It appears strcpy is unavailable via `db.functions.get_by_name` or `db.imports.get_import_by_name` and just want to ensure there’s not a more efficient route than decompiling every function (which I suspect is required).

---

<div class="post-metadata">

**Author:** ![teresa\_hexrays](https://sea2.discourse-cdn.com/flex002/user_avatar/community.hex-rays.com/teresa_hexrays/32/11_2.png) [@teresa\_hexrays](https://community.hex-rays.com/u/teresa_hexrays)\
**Post date:** [October 29, 2026, 10:59am UTC](https://community.hex-rays.com/t/strcpy-xrefs-in-ida-domain-api/848/2 "2026-10-29T10:59:16Z")

</div>

Hi! As you found out, your workaround is currently the way to go. We agree it’s a bit clunky, but improving this would require a new feature in IDA. We’ll keep an eye on it as a possible feature request. Thanks for bringing this up!
