]>
Commit | Line | Data |
---|---|---|
14b0e578 CS |
1 | /** @file\r |
2 | \r | |
3 | Module to rewrite stdlib references within Oniguruma\r | |
4 | \r | |
0af8e57c | 5 | (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP<BR>\r |
14b0e578 CS |
6 | \r |
7 | This program and the accompanying materials are licensed and made available\r | |
8 | under the terms and conditions of the BSD License that accompanies this\r | |
9 | distribution. The full text of the license may be found at\r | |
10 | http://opensource.org/licenses/bsd-license.php.\r | |
11 | \r | |
12 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT\r | |
13 | WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | **/\r | |
15 | #include "OnigurumaUefiPort.h"\r | |
16 | \r | |
a12b214e | 17 | int EFIAPI sprintf_s(char *str, size_t sizeOfBuffer, char const *fmt, ...)\r |
14b0e578 CS |
18 | {\r |
19 | VA_LIST Marker;\r | |
20 | int NumberOfPrinted;\r | |
21 | \r | |
22 | VA_START (Marker, fmt);\r | |
61e078dd | 23 | NumberOfPrinted = (int)AsciiVSPrint (str, sizeOfBuffer, fmt, Marker);\r |
14b0e578 CS |
24 | VA_END (Marker);\r |
25 | \r | |
26 | return NumberOfPrinted;\r | |
27 | }\r | |
28 | \r | |
29 | int OnigStrCmp (char* Str1, char* Str2)\r | |
30 | {\r | |
31 | return (int)AsciiStrCmp (Str1, Str2);\r | |
32 | }\r |