Mistake on this page? Email us
integer_length.h
Go to the documentation of this file.
1 /*
2  * ----------------------------------------------------------------------------
3  * Copyright 2018 ARM Ltd.
4  *
5  * SPDX-License-Identifier: Apache-2.0
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ----------------------------------------------------------------------------
19  */
20 
21 #ifndef EDGE_INTEGER_LENGTH_H
22 #define EDGE_INTEGER_LENGTH_H
23 
24 #include <stdint.h>
25 
43 uint16_t edge_int_length(uint32_t value);
44 
53 int edge_str_to_uint16_t(const char *str, uint16_t *result);
54 
60 #endif /* EDGE_INTEGER_LENGTH_GENERATOR_H */
uint16_t edge_int_length(uint32_t value)
Return the length of the integer in characters. This function calculates the needed space of characte...
int edge_str_to_uint16_t(const char *str, uint16_t *result)
Convert the string to uin16_t.