79788533

Date: 2025-10-12 11:42:47
Score: 1.5
Natty:
Report link

One way to make ft_strlen(NULL) be stopped at compiler-time, is to add this line at the top of the code:

 __attribute__((nonnull(1)))

This is an attribute, a GCC/Clang compiler-specific directive that tells the compiler "The first argument to this function must not be NULL".

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user31651582