[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: incorrect cast (c programming)
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: incorrect cast (c programming)
- From: "Brian J. Kifiak" <bk_(_at_)_rt_(_dot_)_fm>
- Date: 19 Sep 2001 07:42:18 -0000
- Mail-followup-to: misc_(_at_)_openbsd_(_dot_)_org
> The problem is "(off_t) argv[2]". How do you make a correct cast
> here ?
Use atof(3) or strtod(3) or similair on argv[2] before casting.
Along the lines of (off_t)atof(argv[2]).
Visit your host, monkey.org