nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
utils.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef SUPL_UTILS_H_
8#define SUPL_UTILS_H_
9
22int hexstr2hex(const char *in,
23 size_t in_len,
24 unsigned char *out,
25 size_t out_len);
26
40int get_line_len(const char *buf, size_t buf_len);
41
42#endif /* SUPL_UTILS_H_ */
int get_line_len(const char *buf, size_t buf_len)
Get length of a string (or a line). String shall be '\0' terminated. Newline characters are not inclu...
int hexstr2hex(const char *in, size_t in_len, unsigned char *out, size_t out_len)
Convert hex string into hex Example: in = {'D', 'E', 'A', 'D'} -> out = {0xDE, 0xAD}.