T
The Doctor
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 (e-mail address removed) .
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 (e-mail address removed) .