]>
git.proxmox.com Git - mirror_edk2.git/blob - EmbeddedPkg/Library/FdtLib/fdt_strtoul.c
e615d6f4c0b3d65390469a7eae4bd9307aa5a098
2 # Copyright (c) 2018, Linaro Limited. All rights reserved.
4 # SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include <Library/BaseLib.h>
10 #include <Library/DebugLib.h>
22 ASSERT (base
== 10 || base
== 16);
25 Status
= AsciiStrDecimalToUintnS (nptr
, endptr
, &ReturnValue
);
26 } else if (base
== 16) {
27 Status
= AsciiStrHexToUintnS (nptr
, endptr
, &ReturnValue
);
29 Status
= RETURN_INVALID_PARAMETER
;
32 if (RETURN_ERROR (Status
)) {