[efi] Add EFI string formatting functions

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2011-04-07 23:01:05 +01:00
parent fc7e2be617
commit 870524a3b2
4 changed files with 179 additions and 15 deletions

View File

@@ -0,0 +1,23 @@
#ifndef _IPXE_EFI_STRINGS_H
#define _IPXE_EFI_STRINGS_H
/** @file
*
* EFI strings
*/
FILE_LICENCE ( GPL2_OR_LATER );
#include <stddef.h>
#include <stdint.h>
#include <stdarg.h>
extern int efi_vsnprintf ( wchar_t *wbuf, size_t wsize, const char *fmt,
va_list args );
extern int efi_snprintf ( wchar_t *wbuf, size_t wsize, const char *fmt, ... );
extern int efi_vssnprintf ( wchar_t *wbuf, ssize_t swsize, const char *fmt,
va_list args );
extern int efi_ssnprintf ( wchar_t *wbuf, ssize_t swsize,
const char *fmt, ... );
#endif /* _IPXE_EFI_STRINGS_H */