41 lines
1.2 KiB
C
41 lines
1.2 KiB
C
#ifndef __STRLIB_INCLUDE__
|
|
#define __STRLIB_INCLUDE__
|
|
|
|
/******************************************************************************
|
|
* includes
|
|
*****************************************************************************/
|
|
|
|
#include <ctype.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
//#pragma deprecated (strcpy, strcat)
|
|
|
|
/******************************************************************************
|
|
* defines
|
|
*****************************************************************************/
|
|
|
|
/******************************************************************************
|
|
* structs & typedefs
|
|
*****************************************************************************/
|
|
|
|
/******************************************************************************
|
|
* function prototypes
|
|
*****************************************************************************/
|
|
/* export C functions to C++ */
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
size_t strlcat(char *dst, const char *src, size_t siz);
|
|
size_t strlcpy(char *dst, const char *src, size_t siz);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
/******************************************************************************
|
|
* Macros
|
|
* ***************************************************************************/
|
|
|
|
#endif
|