iPXE
Functions
wchar.c File Reference

Wide-character strings. More...

#include <wchar.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
size_t wcslen (const wchar_t *string)
 Calculate length of wide-character string.

Detailed Description

Wide-character strings.

Definition in file wchar.c.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
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.

References len.

Referenced by efi_file_find(), efi_image_exec(), and efi_snp_hii_append().

                                        {
        size_t len = 0;

        while ( *(string++) )
                len++;
        return len;
}