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
e15ba6802912a30da0de92c20dbe574f25a96d21
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: 106ms 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