C Call OpenVMS
Peter Bateman
peterbateman808 at hotmail.com
Thu Sep 10 08:36:06 CDT 2009
Hi John:
In CEDIT I would code a printf for each parameter. to check that they have been passed correctly.
BTW:-
Powerhouse pads with blanks for unequal length character string comparisons.
In C, I like to null terminate strings. I do not want to compare blank with the
null character. So I make my comparisons against a substring of the string coming
back from C. You probably can get away with it if the C code does modify the original
PowerHouse string value and you are testing for a change in the Powerhouse string value.
In your case the null is in position 2.
if "Y" <> t_prod_ok[1:1]
then display t_err_msg
end
instead of
if t_prod_ok <> "Y"
then display t_err_msg
end
Regards,
Peter
_________________________________________________________________
Click less, chat more: Messenger on MSN.ca
http://go.microsoft.com/?linkid=9677404
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sowder.com/pipermail/powerh-l/attachments/20090910/f19fe628/attachment.htm
More information about the powerh-l
mailing list