[fpc-pascal]Password changing

Ivan Montes senbei at terra.es
Fri Jun 7 04:20:39 CEST 2002


> Program Getpw;
> 
> Uses
>   Linux;
> 
> var
>   p: ^TPasswordRecord;
> 
> begin
>   p := getpwnam('helio');
>   writeln(p.pw_dir);
> end.
> 
try changing this:
.....
var p: pPasswordRecord;
.....
writeln(p^.pw_dir);

ciao, ivan

 





More information about the fpc-pascal mailing list