@icing
If s has a length of 3, it will. Copilot isn't wrong? The right way to do this is
min(strlen(s), 2).
Unless of course you are able to guarantee in the contextual code that s is never longer than 2.
If s has a length of 3, it will. Copilot isn't wrong? The right way to do this is
min(strlen(s), 2).
Unless of course you are able to guarantee in the contextual code that s is never longer than 2.
- replies
- 0
- announces
- 0
- likes
- 0