PatchworkOS
Loading...
Searching...
No Matches
strtoll.c File Reference
#include <ctype.h>
#include <errno.h>
#include <inttypes.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include "common/digits.h"

Go to the source code of this file.

Functions

static const char * _strtoll_prelim (const char *p, char *sign, int *base)
 
static uintmax_t _strtoll_main (const char **p, unsigned int base, uintmax_t error, uintmax_t limval, int limdigit, char *sign)
 
long long int strtoll (const char *s, char **endptr, int base)
 

Function Documentation

◆ _strtoll_main()

static uintmax_t _strtoll_main ( const char **  p,
unsigned int  base,
uintmax_t  error,
uintmax_t  limval,
int  limdigit,
char *  sign 
)
static

Definition at line 70 of file strtoll.c.

References _digits, ERANGE, errno, memchr(), NULL, tolower(), and x.

Referenced by strtoll().

◆ _strtoll_prelim()

static const char * _strtoll_prelim ( const char *  p,
char *  sign,
int *  base 
)
static

Definition at line 10 of file strtoll.c.

References _digits, isspace(), memchr(), NULL, and tolower().

Referenced by strtoll().

◆ strtoll()

long long int strtoll ( const char *  s,
char **  endptr,
int  base 
)

Definition at line 112 of file strtoll.c.

References _strtoll_main(), _strtoll_prelim(), LLONG_MAX, LLONG_MIN, and NULL.