Added missing strcat function.

This commit is contained in:
Michael Smith 2018-03-13 15:45:55 +01:00
parent cc281c03ac
commit 572c00fb74
2 changed files with 22 additions and 1 deletions

View File

@ -36,7 +36,7 @@ ESPTOOLOPTS = -ff 40m -fm dio -fs 32m
TARGET = app
# 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

21
c_functions/missing.c Normal file
View 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;
}