]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/OnigurumaUefiPort.c
MdeModulePkg: Regular expression protocol
[mirror_edk2.git] / MdeModulePkg / Universal / RegularExpressionDxe / Oniguruma / OnigurumaUefiPort.c
1 /** @file
2
3 Module to rewrite stdlib references within Oniguruma
4
5 Copyright (c) 2014-2015, Hewlett-Packard Development Company, L.P.<BR>
6
7 This program and the accompanying materials are licensed and made available
8 under the terms and conditions of the BSD License that accompanies this
9 distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php.
11
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT
13 WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 **/
15 #include "OnigurumaUefiPort.h"
16
17 int sprintf(char *str, char const *fmt, ...)
18 {
19 VA_LIST Marker;
20 int NumberOfPrinted;
21
22 VA_START (Marker, fmt);
23 NumberOfPrinted = (int)AsciiVSPrint (str, 1000000, fmt, Marker);
24 VA_END (Marker);
25
26 return NumberOfPrinted;
27 }
28
29 int OnigStrCmp (char* Str1, char* Str2)
30 {
31 return (int)AsciiStrCmp (Str1, Str2);
32 }