RTEMS 6.1-rc1
stringto.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
13/*
14 * COPYRIGHT (c) 2009-2011.
15 * On-Line Applications Research Corporation (OAR).
16 *
17 * Redistribution and use in source and binary forms, with or without
18 * modification, are permitted provided that the following conditions
19 * are met:
20 * 1. Redistributions of source code must retain the above copyright
21 * notice, this list of conditions and the following disclaimer.
22 * 2. Redistributions in binary form must reproduce the above copyright
23 * notice, this list of conditions and the following disclaimer in the
24 * documentation and/or other materials provided with the distribution.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 * POSSIBILITY OF SUCH DAMAGE.
37 */
38
39#ifndef _RTEMS_STRINGTO_H
40#define _RTEMS_STRINGTO_H
48#include <rtems.h>
49
65 const char *s,
66 void **n,
67 char **endptr
68);
69
86 const char *s,
87 unsigned char *n,
88 char **endptr,
89 int base
90);
91
107 const char *s,
108 int *n,
109 char **endptr,
110 int base
111);
112
128 const char *s,
129 unsigned int *n,
130 char **endptr,
131 int base
132);
133
150 const char *s,
151 long *n,
152 char **endptr,
153 int base
154);
155
172 const char *s,
173 unsigned long *n,
174 char **endptr,
175 int base
176);
177
194 const char *s,
195 long long *n,
196 char **endptr,
197 int base
198);
199
216 const char *s,
217 unsigned long long *n,
218 char **endptr,
219 int base
220);
221
236 const char *s,
237 float *n,
238 char **endptr
239);
240
255 const char *s,
256 double *n,
257 char **endptr
258);
259
274 const char *s,
275 long double *n,
276 char **endptr
277);
278
279#endif
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
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_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_status_code rtems_string_to_float(const char *s, float *n, char **endptr)
Convert String to Float (with validation).
Definition: stringtofloat.c:34
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_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_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_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_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_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_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_status_code rtems_string_to_pointer(const char *s, void **n, char **endptr)
Convert String to Pointer (with validation).
Definition: stringtopointer.c:46
This header file defines the RTEMS Classic API.