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