I have a C library code, in which extern method is defined:
typedef unsigned int U32;
extern U32 iw(U32 b, U32 p);
I also have the Assembler code, in which this method is defined.
How can I call this C (or may be even Assembler) method from C# code?
Can I use the DllImport attribute?
Yes, you can use something like the following to call your C dll function: