forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmisc.h
More file actions
30 lines (23 loc) · 672 Bytes
/
misc.h
File metadata and controls
30 lines (23 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2020 Intel Corporation. All rights reserved.
*
* Author: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
*/
#include <stdarg.h>
#include <stdlib.h>
char *log_vasprintf(const char *format, va_list args);
#ifdef __GNUC__
__attribute__((format(printf, 1, 2)))
#endif
char *log_asprintf(const char *format, ...);
#ifdef __GNUC__
__attribute__((format(printf, 1, 2)))
#endif
void log_err(const char *fmt, ...);
/* trim whitespaces from string begin */
char *ltrim(char *s);
/* trim whitespaces from string end */
char *rtrim(char *s);
/* trim whitespaces from string begin and end*/
char *trim(char *s);