iPXE
Typedefs | Functions | Variables
wchar.h File Reference
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef void mbstate_t
 

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
static __attribute__ ((always_inline)) size_t wcrtomb(char *buf
 Convert wide character to multibyte sequence. More...
 
size_t wcslen (const wchar_t *string)
 Calculate length of wide-character string. More...
 

Variables

static wchar_t wc
 
static wchar_t mbstate_t *ps __unused
 
 return
 

Typedef Documentation

◆ mbstate_t

typedef void mbstate_t

Definition at line 8 of file wchar.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ __attribute__()

static __attribute__ ( (always_inline)  )
inlinestatic

Convert wide character to multibyte sequence.

Parameters
bufBuffer
wcWide character
psShift state
Return values
lenNumber of characters written

This is a stub implementation, sufficient to handle basic ASCII characters.

◆ wcslen()

size_t wcslen ( const wchar_t string)

Calculate length of wide-character string.

Parameters
stringString
Return values
lenLength (excluding terminating NUL)

Definition at line 41 of file wchar.c.

41  {
42  size_t len = 0;
43 
44  while ( *(string++) )
45  len++;
46  return len;
47 }
uint32_t len
Length.
Definition: ena.h:14

References len.

Referenced by efi_file_open(), efi_image_exec(), efi_snp_hii_append(), and efivars_find().

Variable Documentation

◆ wc

wchar_t wc

Definition at line 22 of file wchar.h.

Referenced by mschapv2_password_hash(), ntlm_key(), and vcprintf().

◆ __unused

wchar_t mbstate_t* ps __unused
Initial value:
{
*buf = wc
static wchar_t wc
Definition: wchar.h:22

Definition at line 22 of file wchar.h.

◆ return

return

Definition at line 24 of file wchar.h.