diff options
author | 2023-08-04 17:39:07 +0300 | |
---|---|---|
committer | 2023-08-04 18:21:50 -0700 | |
commit | 045ad46441a1cf2ff358af0126f8c57f337804fa (patch) | |
tree | 0d8745d448f22648486c123c18e055aef20be105 /scripts/generate_rust_analyzer.py | |
parent | Linux 6.5-rc1 (diff) | |
download | linux-rng-045ad46441a1cf2ff358af0126f8c57f337804fa.tar.xz linux-rng-045ad46441a1cf2ff358af0126f8c57f337804fa.zip |
lib/string_helpers: Add kstrdup_and_replace() helper
Duplicate a NULL-terminated string and replace all occurrences of
the old character with a new one. In other words, provide functionality
of kstrdup() + strreplace().
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230804143910.15504-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions