fsl_str.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 NXP
3  * All rights reserved.
4  *
5  *
6  * SPDX-License-Identifier: BSD-3-Clause
7  *
8  */
9 
10 #ifndef _FSL_STR_H
11 #define _FSL_STR_H
12 
13 #include "fsl_common.h"
14 
20 /*******************************************************************************
21  * Prototypes
22  ******************************************************************************/
23 #if defined(__cplusplus)
24 extern "C" {
25 #endif /* __cplusplus */
26 
30 typedef void (*printfCb)(char *buf, int32_t *indicator, char val, int len);
31 
45 int StrFormatPrintf(const char *fmt, va_list ap, char *buf, printfCb cb);
46 
58 int StrFormatScanf(const char *line_ptr, char *format, va_list args_ptr);
59 
60 #if defined(__cplusplus)
61 }
62 #endif /* __cplusplus */
63 
66 #endif /* _FSL_STR_H */
fsl_common.h
StrFormatScanf
int StrFormatScanf(const char *line_ptr, char *format, va_list args_ptr)
Converts an input line of ASCII characters based upon a provided string format.
Definition: fsl_str.c:1317
printfCb
void(* printfCb)(char *buf, int32_t *indicator, char val, int len)
A function pointer which is used when format printf log.
Definition: fsl_str.h:30
StrFormatPrintf
int StrFormatPrintf(const char *fmt, va_list ap, char *buf, printfCb cb)
This function outputs its parameters according to a formatted string.
Definition: fsl_str.c:737


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:13:56