Tor 0.4.9.0-alpha-dev
Macros | Functions
compat_string.h File Reference

Header for compat_string.c. More...

#include "orconfig.h"
#include "lib/cc/compat_compiler.h"
#include <stddef.h>

Go to the source code of this file.

Macros

#define tor_strtok_r(str, sep, lasts)   tor_strtok_r_impl(str, sep, lasts)
 

Functions

size_t strlcat (char *dst, const char *src, size_t siz)
 
size_t strlcpy (char *dst, const char *src, size_t siz)
 
char * tor_strtok_r_impl (char *str, const char *sep, char **lasts)
 

Detailed Description

Header for compat_string.c.

Definition in file compat_string.h.

Macro Definition Documentation

◆ tor_strtok_r

#define tor_strtok_r (   str,
  sep,
  lasts 
)    tor_strtok_r_impl(str, sep, lasts)

Definition at line 62 of file compat_string.h.

Function Documentation

◆ strlcat()

size_t strlcat ( char *  dst,
const char *  src,
size_t  siz 
)

Definition at line 45 of file strlcat.c.

◆ strlcpy()

size_t strlcpy ( char *  dst,
const char *  src,
size_t  siz 
)

Definition at line 42 of file strlcpy.c.

◆ tor_strtok_r_impl()

char * tor_strtok_r_impl ( char *  str,
const char *  sep,
char **  lasts 
)

Implementation of strtok_r for platforms whose coders haven't figured out how to write one. Hey, retrograde libc developers! You can use this code here for free!

Definition at line 45 of file compat_string.c.