build a function type with char parameter

I can use Integer::Type.get() to set the type of a parameter to integer. My
question is how I can do this for char *?

Thanks,
Bo

I can use Integer::Type.get() to set the type of a parameter to integer. My
question is how I can do this for char *?

It depends on your target, but usually char is just i8, thus char* is i8*

How should I create the parameter and pass it to CallInst::Create then?

Thanks,
Bo

Anton Korobeynikov-2 wrote: