Quote Originally Posted by savage
Paul do you know if libc.genenv() is available under GP2X?

Actually I would have thought the fpgetenv() should work as well. Maybe what is required is a fix in FPC to get fpgetenv() working.
There is a libc.so.6 file in the devkitGP2X that may contain getenv, but I am unsure.

I did find a libc.pas file on a freepascal site that referes to the libc.so.6 file

Code:
const
  libcmodulename = 'libc.so.6';
and this file has the function getenv in it which comes from the libc.so.6 file.

I hope this helps,
cheers,
Paul.