embeddedartistry / embeddedartistry/libc

Add nullability specifiers to functions

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

Description

_Nonnull
_Nullable

```
../include/stdlib.h:354:51: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
long long strtoll(const char* __restrict str, char** __restrict str_end, int base);
^
../include/stdlib.h:354:51: note: insert '_Nullable' if the pointer may be null
long long strtoll(const char* __restrict str, char** __restrict str_end, int base);
^
_Nullable
../include/stdlib.h:354:51: note: insert '_Nonnull' if the pointer should never be null
long long strtoll(const char* __restrict str, char** __restrict str_end, int base);
^
_Nonnull
```

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.