Changeset ebf806f in rtems


Ignore:
Timestamp:
Feb 1, 2011, 5:45:33 AM (8 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
5410c14
Parents:
fe7c9a1f
Message:

2011-02-01 Ralf Corsepius <ralf.corsepius@…>

  • libmisc/stringto/stringto.h: Rename header-guard. Add rtems_string_to_long_double.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rfe7c9a1f rebf806f  
    112011-02-01      Ralf Corsepius <ralf.corsepius@rtems.org>
    22
     3        * libmisc/stringto/stringto.h: Rename header-guard.
     4        Add rtems_string_to_long_double.
    35        * libmisc/stringto/stringtoint.c: Reformat range check.
    46        Add check for result==0.
  • cpukit/libmisc/stringto/stringto.h

    rfe7c9a1f rebf806f  
    1010 */
    1111
    12 #ifndef __STRING_TO_A_TYPE_h__
    13 #define __STRING_TO_A_TYPE_h__
     12#ifndef _RTEMS_STRINGTO_H
     13#define _RTEMS_STRINGTO_H
    1414
    1515#include <rtems.h>
     
    225225);
    226226
     227/**
     228 *  @brief Convert String to long double (with validation)
     229 *
     230 *  This method converts a string to a long double with range validation.
     231 *
     232 *  @param[in] s is the string to convert
     233 *  @param[in] n points to the variable to place the converted output in
     234 *  @param[in] endptr is used to keep track of the position in the string
     235 *
     236 *  @return This method returns RTEMS_SUCCESSFUL on successful conversion
     237 *          and *n is filled in.  Otherwise, the status indicates the
     238 *          source of the error.
     239 */
     240rtems_status_code rtems_string_to_long_double(
     241  const char   *s,
     242  long double  *n,
     243  char        **endptr
     244);
     245
    227246#endif
Note: See TracChangeset for help on using the changeset viewer.