FPC: translate execvp from c to FPC 
Author Message
 FPC: translate execvp from c to FPC

Both C and FreePascal has the execvp() procedure call.
I want to translate the following C call to FPC equivalent on RedHat6.0.

-- C --
main (int argc, char **argv )
{
  execvp( argv[1], &argv[1] );

Quote:
}

--

-- FPC --
Program xx;
Begin
  Execvp(ParamStr(1), ??????);
End.
---

Please help, thanks a lot.



Sat, 04 Jan 2003 03:00:00 GMT  
 FPC: translate execvp from c to FPC

Quote:
>Both C and FreePascal has the execvp() procedure call.
>I want to translate the following C call to FPC equivalent on RedHat6.0.

>-- C --
>main (int argc, char **argv )
>{
>  execvp( argv[1], &argv[1] );
>}
>--

>-- FPC --
>Program xx;
>Begin
>  Execvp(ParamStr(1), ??????);
>End.
>---

>Please help, thanks a lot.

IIRC in linux versions argv exists, try




Sun, 05 Jan 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. FPC:problem with printing from fpc programs

2. FPC Win32 memory mapped files for IPC

3. multi threading in fpc linux?

4. Port to FPC, - advice needed please.

5. GetEnvVar in TPC versus FPC

6. FPC and makefile

7. ANN: SoundLib 2a3 for BP7&FPC released

8. Norton Guide or equivalent for FPC

9. FreePascal (FPC) and RHIDE

10. GraphiX 4 ready for FPC 1.0.10

11. FPC - wasted memory...

12. FPC - wasted memory - solution ?

 

 
Powered by phpBB® Forum Software