RTEMS: cpukit/include/rtems/stringto.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
stringto.h
Go to the documentation of this file.
1
11/*
12 * COPYRIGHT (c) 2009-2011.
13 * On-Line Applications Research Corporation (OAR).
14 *
15 * The license and distribution terms for this file may be
16 * found in the file LICENSE in this distribution or at
17 * http://www.rtems.org/license/LICENSE.
18 */
19
20#ifndef _RTEMS_STRINGTO_H
21#define _RTEMS_STRINGTO_H
29#include <rtems.h>
30
45 rtems_status_code rtems_string_to_pointer(
46 const char *s,
47 void **n,
48 char **endptr
49);
50
66 rtems_status_code rtems_string_to_unsigned_char(
67 const char *s,
68 unsigned char *n,
69 char **endptr,
70 int base
71);
72
87 rtems_status_code rtems_string_to_int(
88 const char *s,
89 int *n,
90 char **endptr,
91 int base
92);
93
108 rtems_status_code rtems_string_to_unsigned_int(
109 const char *s,
110 unsigned int *n,
111 char **endptr,
112 int base
113);
114
130 rtems_status_code rtems_string_to_long(
131 const char *s,
132 long *n,
133 char **endptr,
134 int base
135);
136
152 rtems_status_code rtems_string_to_unsigned_long(
153 const char *s,
154 unsigned long *n,
155 char **endptr,
156 int base
157);
158
174 rtems_status_code rtems_string_to_long_long(
175 const char *s,
176 long long *n,
177 char **endptr,
178 int base
179);
180
196 rtems_status_code rtems_string_to_unsigned_long_long(
197 const char *s,
198 unsigned long long *n,
199 char **endptr,
200 int base
201);
202
216 rtems_status_code rtems_string_to_float(
217 const char *s,
218 float *n,
219 char **endptr
220);
221
235 rtems_status_code rtems_string_to_double(
236 const char *s,
237 double *n,
238 char **endptr
239);
240
254 rtems_status_code rtems_string_to_long_double(
255 const char *s,
256 long double *n,
257 char **endptr
258);
259
260#endif
rtems_status_code
rtems_status_code
Classic API Status.
Definition: status.h:43
rtems_string_to_double
rtems_status_code rtems_string_to_double(const char *s, double *n, char **endptr)
Convert String to Double (with validation).
Definition: stringtodouble.c:34
rtems_string_to_unsigned_int
rtems_status_code rtems_string_to_unsigned_int(const char *s, unsigned int *n, char **endptr, int base)
Convert String to Unsigned Int (with validation).
Definition: stringtounsignedint.c:34
rtems_string_to_float
rtems_status_code rtems_string_to_float(const char *s, float *n, char **endptr)
Convert String to Float (with validation).
Definition: stringtofloat.c:34
rtems_string_to_long_double
rtems_status_code rtems_string_to_long_double(const char *s, long double *n, char **endptr)
Convert String to long double (with validation).
Definition: stringtolongdouble.c:34
rtems_string_to_int
rtems_status_code rtems_string_to_int(const char *s, int *n, char **endptr, int base)
Convert String to Int (with validation).
Definition: stringtoint.c:34
rtems_string_to_unsigned_char
rtems_status_code rtems_string_to_unsigned_char(const char *s, unsigned char *n, char **endptr, int base)
Convert String to Unsigned Character (with validation).
Definition: stringtounsignedchar.c:34
rtems_string_to_unsigned_long
rtems_status_code rtems_string_to_unsigned_long(const char *s, unsigned long *n, char **endptr, int base)
Convert String to Unsigned Long (with validation).
Definition: stringtounsignedlong.c:34
rtems_string_to_unsigned_long_long
rtems_status_code rtems_string_to_unsigned_long_long(const char *s, unsigned long long *n, char **endptr, int base)
Convert String to Unsigned Long Long (with validation).
Definition: stringtounsignedlonglong.c:39
rtems_string_to_long_long
rtems_status_code rtems_string_to_long_long(const char *s, long long *n, char **endptr, int base)
Convert String to Long Long (with validation).
Definition: stringtolonglong.c:43
rtems_string_to_long
rtems_status_code rtems_string_to_long(const char *s, long *n, char **endptr, int base)
Convert String to Long (with validation).
Definition: stringtolong.c:34
rtems_string_to_pointer
rtems_status_code rtems_string_to_pointer(const char *s, void **n, char **endptr)
Convert String to Pointer (with validation).
Definition: stringtopointer.c:46
rtems.h