Home
Highly Reusable Software By activity User Interface Text Strings Math Processing
Stored Data
Communications
Hard World File System
|
#License - #Source code - #Example Use -
#include <librock/parse.h> int librock_ssfloat(const char *sptr, float *ret /* Conversion stored at *ret */ ); int librock_ssdouble(const char *sptr, double *ret /* Conversion stored at *ret */ );
Typical use is step-by-step processing of text:
#ifdef librock_TYPICAL_USE_ssdouble double doubleVal; const char *ptr = " -20.30e-1"; ptr += librock_ssdouble(ptr,&doubleVal); printf("%g\n",doubleVal); #endif
strtod() malloc() free() // #ifndef librock_FLATMEM librock_countbl() librock_counttowh() librock_strn0cpy()
Copyright 1998-2002 Forrest J. Cavalier III, http://www.mibsoftware.com Licensed under BSD-ish license, NO WARRANTY. Copies must retain this block. License text in <librock/license/librock.txt> librock_LIDESC_HC=12440211096131f5976d36be0cddca4cd9152e45
librock_ssdouble passed tests in tssfloat (Unix/Linux/BSD: 2002/08/08 sys=FreeBSD using gcc)
librock_ssdouble passed tests in tssfloat (WIN32: 2002/08/08 sys=NT 4.0 using MSVC)
librock_ssfloat passed tests in tssfloat (Unix/Linux/BSD: 2002/08/08 sys=FreeBSD using gcc)
librock_ssfloat passed tests in tssfloat (WIN32: 2002/08/08 sys=NT 4.0 using MSVC)
Verbatim copying and distribution of this generated page is permitted in any medium provided that no changes are made.
(The source of this manual page may be covered by a more permissive license which allows modifications.)
Want to help? We welcome comments, patches. -- Need help? Request paid support.