XenevaOS
Loading...
Searching...
No Matches
Macros | Functions
stdlib.cpp File Reference
#include <stdlib.h>
#include <ctype.h>
#include <sys\_heap.h>
#include <sys\_keproc.h>
#include <sys\utf.h>
#include <string.h>
#include <stdarg.h>
#include <limits.h>
Include dependency graph for stdlib.cpp:

Macros

#define MB_CUR_MAX   MB_LEN_MAX
 

Functions

int abs (int i)
 
int atoi (const char *s)
 
double atof (const char *nptr)
 
int mblen (const char *s, size_t n)
 
size_t mbstowcs (wchar_t *dest, const char *src, size_t n)
 
int mbtowc (wchar_t *wc, const char *bytes, size_t n)
 
int rand ()
 NOT IMPLEMENTED.
 
int wctomb (char *s, wchar_t wc)
 
size_t wcstombs (char *dest, const wchar_t *src, size_t n)
 
char * sztoa (size_t value, char *str, int base)
 
void exit (int errno)
 
int setenv (const char *name, const char *value, int overwrite)
 
char * getenv (const char *name)
 
void itoa_s (int i, unsigned base, char *buf)
 
long strtol (const char *nptr, char **endptr, int base)
 converts a string to a long
 
unsigned long strtoul (const char *nptr, char **endptr, int base)
 converts a string to an unsigned long
 
int atexit (void(*func)(void))
 
void abort (void)
 

Macro Definition Documentation

◆ MB_CUR_MAX

#define MB_CUR_MAX   MB_LEN_MAX

BSD 2-Clause License

Copyright (c) 2022-2023, 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.

Function Documentation

◆ abort()

void abort ( void  )

◆ abs()

int abs ( int  i)

◆ atexit()

int atexit ( void(*)(void)  func)

◆ atof()

double atof ( const char *  nptr)

◆ atoi()

int atoi ( const char *  s)

◆ exit()

void exit ( int  errno)

◆ getenv()

char * getenv ( const char *  name)

◆ itoa_s()

void itoa_s ( int  i,
unsigned  base,
char *  buf 
)

◆ mblen()

int mblen ( const char *  s,
size_t  n 
)

◆ mbstowcs()

size_t mbstowcs ( wchar_t dest,
const char *  src,
size_t  n 
)

◆ mbtowc()

int mbtowc ( wchar_t wc,
const char *  bytes,
size_t  n 
)

◆ rand()

int rand ( void  )

NOT IMPLEMENTED.

◆ setenv()

int setenv ( const char *  name,
const char *  value,
int  overwrite 
)

◆ strtol()

long strtol ( const char *  nptr,
char **  endptr,
int  base 
)

converts a string to a long

◆ strtoul()

unsigned long strtoul ( const char *  nptr,
char **  endptr,
int  base 
)

converts a string to an unsigned long

◆ sztoa()

char * sztoa ( size_t  value,
char *  str,
int  base 
)

◆ wcstombs()

size_t wcstombs ( char *  dest,
const wchar_t src,
size_t  n 
)

◆ wctomb()

int wctomb ( char *  s,
wchar_t  wc 
)