# get\_name

Get name at the specified address. ea - linear address gtn\_flags - how exactly the name should be retrieved. combination of GN\_ bits returns: name

string get\_name(long ea, long gtn\_flags=0);

// GN\_ bits for [get\_name](https://docs.hex-rays.com/9.0sp1/developer-guide/idc/idc-api-reference/alphabetical-list-of-idc-functions/270)() function. // There is a convenience function calc\_gtn\_flags() to calculate the GN\_LOCAL flag #define GN\_VISIBLE 0x0001 // replace forbidden characters by SUBSTCHAR #define GN\_COLORED 0x0002 // return colored name #define GN\_DEMANGLED 0x0004 // return demangled name #define GN\_STRICT 0x0008 // fail if cannot demangle #define GN\_SHORT 0x0010 // use short form of demangled name #define GN\_LONG 0x0020 // use long form of demangled name #define GN\_LOCAL 0x0040 // try to get local name first; if failed, get global #define GN\_ISRET 0x0080 // for dummy names: use retloc #define GN\_NOT\_ISRET 0x0100 // for dummy names: do not use retloc

// Calculate flags for get\_name() function static calc\_gtn\_flags(from, ea) { return func\_contains(from, ea) ? GN\_LOCAL : 0; }
