[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: incorrect cast (c programming)



> 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]).