# create\_custom\_data

Convert the current item to a custom data type ea - linear address size - size of the item dtid - custom data type id (see [find\_custom\_data\_type](https://docs.hex-rays.com/8.4/developer-guide/idc/idc-api-reference/alphabetical-list-of-idc-functions/1219)) fid - custom data format id (see [find\_custom\_data\_format](https://docs.hex-rays.com/8.4/developer-guide/idc/idc-api-reference/alphabetical-list-of-idc-functions/1589)) returns: 1-ok, 0-failure This is a convenience macro, see also [create\_data](https://docs.hex-rays.com/8.4/developer-guide/idc/idc-api-reference/alphabetical-list-of-idc-functions/18)() function

\#define create\_custom\_data(ea, size, dtid, fid) create\_data(ea, FF\_CUSTOM, size, dtid|((fid)<<16))
