NeKernel dev
Loading...
Searching...
No Matches
Support.h File Reference

Purpose of this file is to help port libs into the bootloader. More...

#include <string.h>

Go to the source code of this file.

Macros

#define kLongMax   ((long) (~0UL >> 1))
#define kLongMin   (~kLongMax)
#define SetMem(dst, c, sz)
#define MoveMem(dst, src, sz)
#define CopyMem(dst, src, sz)
#define StrLen(src)
#define StrCmp(dst, src)

Functions

int IsSpace (int c)
int StringNCompare (const char *destination, const char *source, long length)
long StringToLong (const char *nptr, char **endptr, int base)

Detailed Description

Purpose of this file is to help port libs into the bootloader.

Macro Definition Documentation

◆ CopyMem

#define CopyMem ( dst,
src,
sz )
Value:
memcpy(dst, src, sz)
EXTERN_C void * memcpy(void *dst, const void *src, long long unsigned int len)
Definition CRuntimeOverrides.cc:19

◆ kLongMax

#define kLongMax   ((long) (~0UL >> 1))

◆ kLongMin

#define kLongMin   (~kLongMax)

◆ MoveMem

#define MoveMem ( dst,
src,
sz )
Value:
memcpy(dst, src, sz)

◆ SetMem

#define SetMem ( dst,
c,
sz )
Value:
memset(dst, c, sz)
EXTERN_C void * memset(void *dst, int c, long long unsigned int len)
C Standard Library overrides. /// =========================================================== ///.
Definition CRuntimeOverrides.cc:15

◆ StrCmp

#define StrCmp ( dst,
src )
Value:
strcmp(dst, src)
EXTERN_C Int32 strcmp(const char *a, const char *b)
Definition CRuntimeOverrides.cc:25

◆ StrLen

#define StrLen ( src)
Value:
strlen(src)

Function Documentation

◆ IsSpace()

int IsSpace ( int c)
inline

◆ StringNCompare()

int StringNCompare ( const char * destination,
const char * source,
long length )
inline

◆ StringToLong()

long StringToLong ( const char * nptr,
char ** endptr,
int base )
inline