The example in lib/ftoastr.h is: int r = dtoastr (buf, sizeof buf, "%*.*g", 0, 0.1);
but the prototype for dtoastr() is: int dtoastr (char *buf, size_t bufsize, int flags, int width, double x); So "%.*g" in the example is wrong: it needs to get replaced by a "flags" argument. Thanks, Ben. -- Ben Pfaff http://benpfaff.org