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   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 
sprintf_s(char * str,size_t sizeOfBuffer,char const * fmt,...)17 int EFIAPI sprintf_s(char *str, size_t sizeOfBuffer, char const *fmt, ...)
18 {
19   VA_LIST Marker;
20   int   NumberOfPrinted;
21 
22   VA_START (Marker, fmt);
23   NumberOfPrinted = (int)AsciiVSPrint (str, sizeOfBuffer, fmt, Marker);
24   VA_END (Marker);
25 
26   return NumberOfPrinted;
27 }
28 
OnigStrCmp(char * Str1,char * Str2)29 int OnigStrCmp (char* Str1, char* Str2)
30 {
31   return (int)AsciiStrCmp (Str1, Str2);
32 }
33