From 50b7bdacbd6d4af3bb3128c038e4e0e2cd0d50df Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 8 May 2010 03:10:51 +0000 Subject: Add floating point support to printf git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2656 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/lib/lib_internal.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'nuttx/lib/lib_internal.h') diff --git a/nuttx/lib/lib_internal.h b/nuttx/lib/lib_internal.h index 46af49cf4..6ec2fe201 100644 --- a/nuttx/lib/lib_internal.h +++ b/nuttx/lib/lib_internal.h @@ -1,7 +1,7 @@ /**************************************************************************** * lib/lib_internal.h * - * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2010 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -102,6 +102,13 @@ extern int lib_rawvprintf(const char *src, va_list ap); extern int lib_lowvprintf(const char *src, va_list ap); +/* Defined in lib_dtoa.c */ + +#ifdef CONFIG_LIBC_FLOATINGPOINT +extern char *__dtoa(double d, int mode, int ndigits, + int *decpt, int *sign, char **rve); +#endif + /* Defined in lib_libwrite.c */ extern ssize_t lib_fwrite(FAR const void *ptr, size_t count, FAR FILE *stream); -- cgit v1.2.3