0.01.00
wrap_string.h File Reference

This file is a wrapper for the standard "string.h" file Some platforms provide all required functions, some do not. More...

#include "openthread-core-config.h"
#include <string.h>

Go to the source code of this file.

Macros

#define WRAP_EXTERN_C   extern
 
#define strnlen(S, N)   missing_strnlen( S, N )
 
#define strlcpy(D, S, N)   missing_strlcpy( D, S, N )
 
#define strlcat(D, S, N)   missing_strlcat( D, S, N )
 

Functions

WRAP_EXTERN_C size_t missing_strlcpy (char *dst, const char *src, size_t dstsize)
 
WRAP_EXTERN_C size_t missing_strlcat (char *dst, const char *src, size_t dstsize)
 
WRAP_EXTERN_C size_t missing_strnlen (const char *s, size_t maxlen)
 

Detailed Description

This file is a wrapper for the standard "string.h" file Some platforms provide all required functions, some do not.

This solves the missing functions in #include <string.h>