[fpc-pascal] Using FPC MM in a C program
micha at neli.hopto.org
Tue Jan 6 11:24:10 CET 2009
> Since it's possible to use libc's MM via cmem unit, would the opposite be
I have a "crtl.pas" which defines a few functions (malloc, calloc, free,
memmove, memcpy) to help in using libraries written in C with fpc
programs without needing external dependencies (msvcrt.dll on windows,
for some reason that did not work for me).
However, it's a all-or-nothing situation. A program uses either this
crtl unit, or it links a C library like msvcrt.dll or something similar;
using both is asking for trouble.
More information about the fpc-pascal