AS> void write_d(short x, short y, short color,
AS> short bk_color, double what)
AS> {
AS> char z[10];
AS> gcvt(what,10,z);
AS> write(x,y,color,bk_color,z);
AS> };
AS> All looks to be nice, but this function makes my program
AS> unstable, so, it will write string, but at the and of
AS> program OS/2 shows that "This program cannot continue..."
AS> What happenings ?
AS> PS. Sorry for my dirty english :(
AS> Hiding in the grave
as>....
Maybe you should make z[11] instead of z[10] for NUL
terminator to fit into your allocated space? :)
We aren't hiding. We are just catching some z's. ;)
> ] When this message is over, you will awake feeling refreshed.
---
---------------
* Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750)
|