]>
Commit | Line | Data |
---|---|---|
14b0e578 CS |
1 | /** @file\r |
2 | \r | |
3 | Module to rewrite stdlib references within Oniguruma\r | |
4 | \r | |
5 | Copyright (c) 2014-2015, Hewlett-Packard Development Company, L.P.<BR>\r | |
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 | |
17 | int sprintf(char *str, char const *fmt, ...)\r | |
18 | {\r | |
19 | VA_LIST Marker;\r | |
20 | int NumberOfPrinted;\r | |
21 | \r | |
22 | VA_START (Marker, fmt);\r | |
23 | NumberOfPrinted = (int)AsciiVSPrint (str, 1000000, fmt, Marker);\r | |
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 |