mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-10-24 04:32:05 +01:00
lib: sbi: Add sbi_ngets() function
We add new sbi_ngets() which help us read characters into a physical memory location. Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Atish Patra <atishp@rivosinc.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
This commit is contained in:
1 parent
0ee3a86fed
commit
4e0572f57b
2 files changed
+17
No files matched your search
@@ -37,6 +37,8 @@ unsigned long sbi_nputs(const char *str, unsigned long len);
|
||||
|
||||
void sbi_gets(char *s, int maxwidth, char endchar);
|
||||
|
||||
unsigned long sbi_ngets(char *str, unsigned long len);
|
||||
|
||||
int __printf(2, 3) sbi_sprintf(char *out, const char *format, ...);
|
||||
|
||||
int __printf(3, 4) sbi_snprintf(char *out, u32 out_sz, const char *format, ...);
|
||||
|
||||
Reference in new issue
Block a user