All pastes #452895 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-22 16:30 UTC
rendered paste body
{Convert a string to an array of chars}
procedure StoC (str1 : String; str2 array of char);
    var
        j: word;
    begin
        for j := 1 to sizeof(str2) do
            begin
                if str1[j]=''
                then str2[j]:=' '
                else str2[j]:=str1[j];

            end;
    end;