Skip to content
Commit 2d71236a authored by Leandro Pereira's avatar Leandro Pereira Committed by Andrew Boie
Browse files

lib: libc: minimal: Get rid of the bit (256-byte) charmap table



The charmap table used by strncasecmp() not only used precious 256
bytes of ROM, it also had wrong mappings outside the ASCII range
(123..218).

Rewrite strncasecmp() to call tolower() instead; might be a tiny wee
little bit slower than the current version, but it's not used in any
performance-sensitive parts of the code to justify the waste.

This reduces the ROM footprint for the ws_echo_server sample by ~224
bytes.

Signed-off-by: default avatarLeandro Pereira <leandro.pereira@intel.com>
parent 8f321b48
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment