2015-09-08 09:10:03 +02:00
|
|
|
/** @file
|
2019-09-19 14:04:53 +02:00
|
|
|
|
2015-09-08 09:10:03 +02:00
|
|
|
Module to rewrite stdlib references within Oniguruma
|
|
|
|
|
2015-11-03 03:43:03 +01:00
|
|
|
(C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP<BR>
|
2015-09-08 09:10:03 +02:00
|
|
|
|
2019-04-04 01:05:13 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2015-09-08 09:10:03 +02:00
|
|
|
**/
|
|
|
|
#include "OnigurumaUefiPort.h"
|
|
|
|
|
2016-10-09 04:20:30 +02:00
|
|
|
int EFIAPI sprintf_s(char *str, size_t sizeOfBuffer, char const *fmt, ...)
|
2015-09-08 09:10:03 +02:00
|
|
|
{
|
|
|
|
VA_LIST Marker;
|
|
|
|
int NumberOfPrinted;
|
|
|
|
|
|
|
|
VA_START (Marker, fmt);
|
2016-01-04 06:14:53 +01:00
|
|
|
NumberOfPrinted = (int)AsciiVSPrint (str, sizeOfBuffer, fmt, Marker);
|
2015-09-08 09:10:03 +02:00
|
|
|
VA_END (Marker);
|
|
|
|
|
|
|
|
return NumberOfPrinted;
|
|
|
|
}
|
|
|
|
|
|
|
|
int OnigStrCmp (char* Str1, char* Str2)
|
|
|
|
{
|
|
|
|
return (int)AsciiStrCmp (Str1, Str2);
|
|
|
|
}
|