/** @file
Miscellaneous Functions for <string.h>.
Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies this distribution.
The full text of the license may be found at
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
//#include <sys/EfiCdefs.h>
#include <Uefi.h>
#include <Library/BaseMemoryLib.h>
#include <Library/PrintLib.h>
#include <LibConfig.h>
#include <errno.h>
#include <limits.h>
#include <string.h>
extern char *sys_errlist[];
/** The memset function copies the value of c (converted to an unsigned char)
into each of the first n characters of the object pointed to by s.
@return The memset function returns the value of s.
**/
void *
{
}
int
{
const char *estring;
INTN i;
int retval = 0;
}
else {
for( i = buflen; i > 0; --i) {
break;
}
}
if(i == 0) {
}
}
return retval;
}
/** The strerror function maps the number in errnum to a message string.
Typically, the values for errnum come from errno, but strerror shall map
any value of type int to a message.
The implementation shall behave as if no library function calls the
strerror function.
@return The strerror function returns a pointer to the string, the
contents of which are locale specific. The array pointed to
shall not be modified by the program, but may be overwritten by
a subsequent call to the strerror function.
**/
char *
{
int status;
if(status != 0) {
}
return errorbuf;
}
/** The strlen function computes the length of the string pointed to by s.
@return The strlen function returns the number of characters that
precede the terminating null character.
**/
strlen(const char *s)
{
return (size_t)AsciiStrLen( s);
}