Skip to content

Commit 4c49263

Browse files
committed
strtol and strtoul in flash
1 parent 47b7bcb commit 4c49263

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hardware/esp8266com/esp8266/cores/esp8266/libc_replacements.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ size_t ICACHE_FLASH_ATTR strlcpy(char* dst, const char* src, size_t size) {
483483
* SUCH DAMAGE.
484484
*/
485485

486-
long strtol(const char *nptr, char **endptr, int base) {
486+
long ICACHE_FLASH_ATTR strtol(const char *nptr, char **endptr, int base) {
487487
const unsigned char *s = (const unsigned char *)nptr;
488488
unsigned long acc;
489489
int c;
@@ -559,7 +559,7 @@ long strtol(const char *nptr, char **endptr, int base) {
559559
return (acc);
560560
}
561561

562-
unsigned long strtoul(const char *nptr, char **endptr, int base)
562+
unsigned long ICACHE_FLASH_ATTR strtoul(const char *nptr, char **endptr, int base)
563563
{
564564
const unsigned char *s = (const unsigned char *)nptr;
565565
unsigned long acc;

0 commit comments

Comments
 (0)