See attached code. The output when it is run should be;
1-JUL-28
101.10
202.20
Instead it is producing the following;
1-JUL-28
101.10A
202.20A
It think it is a priblem with clearing the buffer. Can someone throw some light on what is wrong.
Printable View
See attached code. The output when it is run should be;
1-JUL-28
101.10
202.20
Instead it is producing the following;
1-JUL-28
101.10A
202.20A
It think it is a priblem with clearing the buffer. Can someone throw some light on what is wrong.
A string is an array of characters ending with a \x0. You forgot to end the strings with \x0. After each while you may do, for exemple, after the first while:
frst_strg[j] = 0;