]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/OnigurumaUefiPort.c
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Universal / RegularExpressionDxe / Oniguruma / OnigurumaUefiPort.c
1 /** @file
2
3 Module to rewrite stdlib references within Oniguruma
4
5 (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP<BR>
6
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8 **/
9 #include "OnigurumaUefiPort.h"
10
11 int EFIAPI sprintf_s(char *str, size_t sizeOfBuffer, char const *fmt, ...)
12 {
13 VA_LIST Marker;
14 int NumberOfPrinted;
15
16 VA_START (Marker, fmt);
17 NumberOfPrinted = (int)AsciiVSPrint (str, sizeOfBuffer, fmt, Marker);
18 VA_END (Marker);
19
20 return NumberOfPrinted;
21 }
22
23 int OnigStrCmp (char* Str1, char* Str2)
24 {
25 return (int)AsciiStrCmp (Str1, Str2);
26 }