[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] atof routine
From: |
Joerg Wunsch |
Subject: |
Re: [avr-libc-dev] atof routine |
Date: |
Thu, 17 Apr 2003 10:24:44 +0200 |
User-agent: |
Mutt/1.2.5i |
As Colin O'Flynn wrote:
> I'm in need of a atof routine for my latest project,
> and noticed that stdlib doesn't have one yet.
#include <stdlib.h>
#define atof(s) strtod(s, (char **)0)
:-)
Don't forget to link against libm.a (-lm), for hysterical raisins,
strtod() in avr-libc is part of the math library.
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/