embeddedartistry / embeddedartistry/libc

Break with the standard: strnstr, strtok return const char *

Open
#51 11 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted Investigation
Dominant language
C
Stars
661
Forks
78
PR merge metrics
No merged PRs in 30d

Description

Casting const away is not ok!!!

Current workaround to eliminate the warning:

```
return ((char*)(uintptr_t)s);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.