Mail Archives: djgpp/1997/02/16/07:01:01
On 15 Feb 1997, nikki wrote:
> is there any particular reason why :
>
> double wib;
>
> wib= (double) atof(argv[2]);
>
> or
>
> float wib;
> int a;
>
> wib= (float) a;
>
> should both give wrong values under djgpp?
Did you actually gave 2 arguments to your program? argv[0] is the
program name, argv[1] is the first argument.
If the above doesn't give a clue, post the shortest program you can craft
that exhibits this bug and the command line you pass it.
- Raw text -