The Doctor
2005-05-30 19:49:35 UTC
One word: HELP!
I got a programme written in Pascal which I am in the process of
translating into c. ptoc did a good job, still there are some
fixes that need to be done.
1)
/*try
getmem(molbuf,sizeof(molbuftype));
except
on e:Eoutofmemory do
begin
writeln('Not enough memory');
halt(4);
end;
end;*/
and
/*try
getmem(atom,n_atoms*sizeof(atom_rec));
getmem(bond,n_bonds*sizeof(bond_rec));
getmem(ring,sizeof(ringlist));
getmem(ringprop,sizeof(ringprop_type));
except
on e:Eoutofmemory do
begin
writeln('Not enough memory');
halt(4);
end;
end;*/
How isthis translated into C?
2) exit , what is the C equivalent?
3) beep, how do you say that in C?
4) /* str(n_atoms:1,tmpstr); lblank(3,tmpstr); */
How is this translated in C?
I am more likely available at ***@nk.ca .
I got a programme written in Pascal which I am in the process of
translating into c. ptoc did a good job, still there are some
fixes that need to be done.
1)
/*try
getmem(molbuf,sizeof(molbuftype));
except
on e:Eoutofmemory do
begin
writeln('Not enough memory');
halt(4);
end;
end;*/
and
/*try
getmem(atom,n_atoms*sizeof(atom_rec));
getmem(bond,n_bonds*sizeof(bond_rec));
getmem(ring,sizeof(ringlist));
getmem(ringprop,sizeof(ringprop_type));
except
on e:Eoutofmemory do
begin
writeln('Not enough memory');
halt(4);
end;
end;*/
How isthis translated into C?
2) exit , what is the C equivalent?
3) beep, how do you say that in C?
4) /* str(n_atoms:1,tmpstr); lblank(3,tmpstr); */
How is this translated in C?
I am more likely available at ***@nk.ca .
--
Member - Liberal International
This is ***@nl2k.ab.ca Ici ***@nl2k.ab.ca
God Queen and country! Beware Anti-Christ rising!
insert you thought here.
Member - Liberal International
This is ***@nl2k.ab.ca Ici ***@nl2k.ab.ca
God Queen and country! Beware Anti-Christ rising!
insert you thought here.