On 05 Nov 2013, at 09:07, Antonio Fortuny wrote:
> I don't know a way to make the data pointed to, as being constant.
There is indeed no way to specify that in Pascal.
Jonas
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.fre
Le 04/11/2013 14:18, Alexander a
écrit :
How can I describe a "pointer to a constant char" in FreePascal?
For example this C function:
int some_func(const char *arg, ...);
... coulb be translated to
some_proc(const arg: PChar, ...
On 11/04/2013 02:18 PM, Alexander wrote:
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 const
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, i