add attribute for C functions