Comments (5)
Yeah, it seems some magic code, I didn't write has injected itself into the last merge. No idea what happened there (see the default conundrum).
But it seems strcat
is not used anywhere in the code. @cnlohr can we just remove it? Why was it there in the first place and why not in one of our library files (i.e. ./esp82xx/include/string.h
) instead?
If we cannot remove it, what do you guys think of:
char * strcat( char * dest, char * src )
{
char *orig = dest;
while (*dest) dest++;
while (*dest++ = *src++);
return orig;
}
P.S.
What is charrx
supposed to do?
from esp82xx.
I vaguely recall putting in the strcat code. Though I feel completely idiotic about writing it now. I don't know what I was thinking.
charrx I think is when data comes back down the serial line. That way you can easily hook incoming serial bytes.
from esp82xx.
P.S. Please use your code if you've tested it. I also noticed 'man cat' has an implementation:
char *
strncat(char *dest, const char *src, size_t n)
{
size_t dest_len = strlen(dest);
size_t i;
for (i = 0 ; i < n && src[i] != '\0' ; i++)
dest[dest_len + i] = src[i];
dest[dest_len + i] = '\0';
return dest;
}
from esp82xx.
Fixed in 93074f1
from esp82xx.
and it works :-D
from esp82xx.
Related Issues (20)
- Not saving wifi credentials HOT 78
- Cannot upgrade via WEB [SOLVED, WITH PATCH] HOT 8
- More on issue #60
- Automatically getting esp_nonos_sdk? HOT 3
- Problem with Scan For Wifi HOT 2
- netburn failing HOT 12
- Feature request/question HOT 6
- Profiling of ESP8266 based code HOT 4
- Add make feature to reset via USB (nodeMCU configuration)
- Failed to detect MPU9250 using I2C HOT 2
- Try upgrading to RTOS SDK
- netburn doesn't work with esp8285 HOT 1
- mfsmaker / windows HOT 5
- esp_nonos_skd @ 80fbd83 missing HOT 4
- Undefined reference to `os_printf` HOT 6
- documentation HOT 1
- Investigate possible use of mask ROM for malloc/free
- [ webgui flashing ] HOT 6
- Error compiling projects HOT 5
- issues with instructions and python-serial HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp82xx.