[fpc-pascal] Pointer to a const char

Alexander ambulajan at gmail.com
Mon Nov 4 14:18:02 CET 2013

How can I describe a "pointer to a constant char" in FreePascal?

For example this C function:

int some_func(const char *arg, ...);

My guess in FreePascal is this(with ctypes unit):

function some_func(const arg: pcchar): cint; cdecl; external;

A constant argument to a function.
I'm not sure, is it a "constant pointer to a char", or a "pointer to a
constant char".

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131104/b84ea280/attachment.html>

More information about the fpc-pascal mailing list