XenevaOS
Loading...
Searching...
No Matches
Functions
util.h File Reference
#include "uspios.h"
#include "uspi/types.h"
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void * memset (void *pBuffer, int nValue, size_t nLength)
 
void * memcpy (void *pDest, const void *pSrc, size_t nLength)
 
int memcmp (const void *pBuffer1, const void *pBuffer2, size_t nLength)
 
size_t strlen (const char *pString)
 
int strcmp (const char *pString1, const char *pString2)
 
char * strcpy (char *pDest, const char *pSrc)
 
char * strncpy (char *pDest, const char *pSrc, size_t nMaxLen)
 
char * strcat (char *pDest, const char *pSrc)
 
int uspi_char2int (char chValue)
 
u16 uspi_le2be16 (u16 usValue)
 
u32 uspi_le2be32 (u32 ulValue)
 

Function Documentation

◆ memcmp()

int memcmp ( const void *  pBuffer1,
const void *  pBuffer2,
size_t  nLength 
)

◆ memcpy()

void * memcpy ( void *  pDest,
const void *  pSrc,
size_t  nLength 
)

◆ memset()

void * memset ( void *  pBuffer,
int  nValue,
size_t  nLength 
)

◆ strcat()

char * strcat ( char *  pDest,
const char *  pSrc 
)

◆ strcmp()

int strcmp ( const char *  pString1,
const char *  pString2 
)

BSD 2-Clause License

Copyright (c) 2022, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

◆ strcpy()

char * strcpy ( char *  pDest,
const char *  pSrc 
)

◆ strlen()

size_t strlen ( const char *  pString)

◆ strncpy()

char * strncpy ( char *  pDest,
const char *  pSrc,
size_t  nMaxLen 
)

◆ uspi_char2int()

int uspi_char2int ( char  chValue)

◆ uspi_le2be16()

u16 uspi_le2be16 ( u16  usValue)

◆ uspi_le2be32()

u32 uspi_le2be32 ( u32  ulValue)