Logo
Explore Help
Register Sign In
leandrof/u-boot
1
0
Fork 1
You've already forked u-boot
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
86ceedd84e2052db5497dbb51fa373d3229d83e1
u-boot/cmd/printf.h

9 lines
161 B
C
Raw Normal View History

cmd: setexpr: add format string handling Add format string handling operator to the setexpr command. It allows to use C or Bash like format string expressions to be evaluated with the result being stored inside the environment variable name. setexpr <name> fmt <format> [value]... The following example setexpr foo fmt "%d, 0x%x" 0x100 ff will result in $foo being set to "256, 0xff". Signed-off-by: Roland Gaudig <roland.gaudig@weidmueller.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2021-07-23 12:29:21 +00:00
/* SPDX-License-Identifier: GPL-2.0+ */
#ifndef __PRINTF_H
#define __PRINTF_H
int printf_setexpr(char *str, size_t size, int argc, char *const *argv);
#endif
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 115ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API