tor  0.4.2.0-alpha-dev
Macros | Functions
compat_string.h File Reference
#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.

Function Documentation

◆ 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.