PRINTUSING function for C?
Superuser
root at fincomp.UUCP
Thu Jul 19 00:20:28 AEST 1990
Has anyone ever implemented BASIC's PRINTUSING feature in C?
I have a situation where some basic software types forms with a statement
like:
call typereal(hp, vp, "$###,###,##.##", realvar);
where hp and vp are x,y coordinates where the output is to be printed,
realvar is a double precision real variable, and that mess in the
middle is a format specifier used by BASIC's PRINTUSING statement.
This statement would cause the value of realvar to be printed in a
dollar and cents format with commas and a floating dollar sign.
If I had a way to handle the printusing statement in C then I could
re-use a bunch of existing BASIC code with just a touch of editing.
Post or email - all help appreciated!
My apologies for speaking the word BASIC in this group!
Aren't you glad you use C? Don't you wish everybody did?
uucp: tiamat!mjbtn!fincomp!neal | You code 16K, and what do you get?
internet: fincomp.jobsoft.com | Another day older and deeper in debt!
Neal McClain | St. Peter don't ya call me 'cause I can't go;
Murfreesboro, TN | I owe my soul to the UNIX bookstore!
More information about the Comp.lang.c
mailing list