ex74.pp 271 B

12345678910111213141516171819
  1. program example74;
  2. uses baseunix;
  3. Var
  4. P : PGrpArr;
  5. C,R,I : Cint;
  6. begin
  7. C:=5;
  8. GetMem(P,Sizeof(tgid)*C);
  9. FillChar(P^,Sizeof(tgid)*C,0);
  10. R:=fpGetGroups(C,P^);
  11. If (R>0) then
  12. begin
  13. For I:=0 to R-1 do
  14. Writeln('Group id :',P^[I]);
  15. end;
  16. end.