3 Copyright (c) 2004, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Common library assistance routines.
22 #ifndef _EFI_COMMON_LIB_H
23 #define _EFI_COMMON_LIB_H
25 #include <Common/UefiBaseTypes.h>
31 #define PRINTED_GUID_BUFFER_SIZE 37 // including null-termination
33 // Function declarations
74 IN CHAR8
*InputFileName
,
75 OUT CHAR8
**InputFileImage
,
114 #define PRINTED_GUID_BUFFER_SIZE 37 // including null-termination
118 IN OUT UINT8
*Buffer
,
124 #define ASSERT(x) assert(x)
128 #include <sys/stat.h>
129 #define stricmp strcasecmp
130 #define _stricmp strcasecmp
131 #define strnicmp strncasecmp
132 #define strcmpi strcasecmp
133 size_t _filelength(FILE *file
);
135 char *strlwr(char *s
);