All pastes #61084 Raw Edit

Q.A1.

public text v1 · immutable
#61084 ·published 2006-06-02 17:20 UTC
rendered paste body
Function CountChar(c : char; List : Ary; Length : Integer) : Integer;

 VAR
 N,Count : Integer;
 
 Begin
   Count     := 0;
   CountChar :=0;

   For N:= 1 to Length do
    If List[N] = c then Count:= Count+1;

   CountChar := Count;

 End;