On 23 Apr 2010, at 09:45, Graeme Geldenhuys wrote:

1) First I had the problem that FPC couldn't find 'Libc' unit used in the
uses clause. No idea why - maybe Libc unit is only 32bit?

Yes, it is.

2) This got me a bit further, to the code shown below. Is there a baseunix
equivalent to Libc.mblen()?

No, there is not. You have to manually import it from the C library. You can look at rtl/unix/cwstring.pp to see the declaration of this function for various platforms (note that it's mbrlen() in most cases -- that one is preferable to mblen() because mblen() is not thread- safe).


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to