UEFIStarter
a simple UEFI framework
string.h
Go to the documentation of this file.
1 
11 #ifndef __STRING_H
12 #define __STRING_H
13 
14 #include <Uefi.h>
15 
16 CHAR16 *ftowcs(double value);
17 CHAR16 *sprint_status(CHAR16 *funcname, EFI_STATUS status);
18 
19 BOOLEAN ctype_whitespace(char ch);
20 UINT64 atoui64(char *str);
21 
22 CHAR16* EFIAPI memsprintf(const CHAR16 *fmt, ...);
23 
24 UINTN split_string(CHAR16 ***list, CHAR16 *input, CHAR16 separator);
25 
26 #endif
CHAR16 *EFIAPI memsprintf(const CHAR16 *fmt,...)
sprintf() replacement that tracks allocated pool memory for automatic cleanup.
Definition: string.c:155
UINT64 atoui64(char *str)
Converts an ASCII integer string to UINT64.
Definition: string.c:83
UINTN split_string(CHAR16 ***list, CHAR16 *input, CHAR16 separator)
Splits a string by a separator character into an array of strings.
Definition: string.c:181
CHAR16 * sprint_status(CHAR16 *funcname, EFI_STATUS status)
Helper function to format an EFI function call result into a human-readable string.
Definition: string.c:127
BOOLEAN ctype_whitespace(char ch)
Checks if an ASCII character is a whitespace.
Definition: string.c:115
CHAR16 * ftowcs(double value)
Converts a double value into a UTF-16 string with 3 decimals.
Definition: string.c:36