Added missing strcat function.
This commit is contained in:
parent
cc281c03ac
commit
572c00fb74
2
Makefile
2
Makefile
@ -36,7 +36,7 @@ ESPTOOLOPTS = -ff 40m -fm dio -fs 32m
|
|||||||
TARGET = app
|
TARGET = app
|
||||||
|
|
||||||
# which modules (subdirectories) of the project to include in compiling
|
# which modules (subdirectories) of the project to include in compiling
|
||||||
MODULES = driver user easygpio
|
MODULES = driver user easygpio c_functions
|
||||||
EXTRA_INCDIR = include $(BUILD_AREA)/esp-open-sdk/esp-open-lwip/include
|
EXTRA_INCDIR = include $(BUILD_AREA)/esp-open-sdk/esp-open-lwip/include
|
||||||
#EXTRA_INCDIR = include
|
#EXTRA_INCDIR = include
|
||||||
|
|
||||||
|
|||||||
21
c_functions/missing.c
Normal file
21
c_functions/missing.c
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#include "c_types.h"
|
||||||
|
#include "mem.h"
|
||||||
|
#include "ets_sys.h"
|
||||||
|
#include "osapi.h"
|
||||||
|
#include "gpio.h"
|
||||||
|
#include "os_type.h"
|
||||||
|
|
||||||
|
char *_strcat(char *dest, const char *src)
|
||||||
|
{
|
||||||
|
size_t i, j;
|
||||||
|
for (i = 0; dest[i] != '\0'; i++);
|
||||||
|
|
||||||
|
for (j = 0; src[j] != '\0'; j++)
|
||||||
|
{
|
||||||
|
dest[i + j] = src[j];
|
||||||
|
}
|
||||||
|
|
||||||
|
dest[i + j] = '\0';
|
||||||
|
|
||||||
|
return dest;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user