MySQL  8.0.19
Source Code Documentation
util.c File Reference
#include "config.h"
#include <stdio.h>
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include "memcached/util.h"

Macros

#define INT_MAX32   0x7fffffff
 
#define xisspace(c)   isspace((unsigned char)c)
 

Functions

bool safe_strtoull (const char *str, uint64_t *out)
 
bool safe_strtoll (const char *str, int64_t *out)
 
bool safe_strtoul (const char *str, uint32_t *out)
 
bool safe_strtol (const char *str, int32_t *out)
 
bool safe_strtof (const char *str, float *out)
 
void vperror (const char *fmt,...)
 
static uint64_t mc_swap64 (uint64_t in)
 
uint64_t ntohll (uint64_t val)
 
uint64_t htonll (uint64_t val)
 

Macro Definition Documentation

◆ INT_MAX32

#define INT_MAX32   0x7fffffff

◆ xisspace

#define xisspace (   c)    isspace((unsigned char)c)

Function Documentation

◆ htonll()

uint64_t htonll ( uint64_t  val)

◆ mc_swap64()

static uint64_t mc_swap64 ( uint64_t  in)
static

◆ ntohll()

uint64_t ntohll ( uint64_t  val)

◆ safe_strtof()

bool safe_strtof ( const char *  str,
float *  out 
)

◆ safe_strtol()

bool safe_strtol ( const char *  str,
int32_t *  out 
)

◆ safe_strtoll()

bool safe_strtoll ( const char *  str,
int64_t *  out 
)

◆ safe_strtoul()

bool safe_strtoul ( const char *  str,
uint32_t *  out 
)

◆ safe_strtoull()

bool safe_strtoull ( const char *  str,
uint64_t *  out 
)

◆ vperror()

void vperror ( const char *  fmt,
  ... 
)