You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/04/23 07:37:27 UTC
[GitHub] [incubator-nuttx] minabeoki opened a new pull request, #6139: libc/string: strcmp/strncmp cast unsigned char
minabeoki opened a new pull request, #6139:
URL: https://github.com/apache/incubator-nuttx/pull/6139
## Summary
- Cast to unsigned char for strcmp and strncmp
- strcmp and strncmp are described following by opengroup.org
> The sign of a non-zero return value shall be determined by the sign
> of the difference between the values of the first pair of bytes
> (both interpreted as type **unsigned char**) that differ in the strings
> being compared.
https://pubs.opengroup.org/onlinepubs/9699919799/functions/strcmp.html
https://pubs.opengroup.org/onlinepubs/9699919799/functions/strncmp.html
## Impact
- strcmp and strncmp return value
## Testing
- ostest on sabre-6quad:smp w/ qemu
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] pkarashchenko merged pull request #6139: libc/string: strcmp/strncmp cast unsigned char
Posted by GitBox <gi...@apache.org>.
pkarashchenko merged PR #6139:
URL: https://github.com/apache/incubator-nuttx/pull/6139
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org