[PATCH] D86993: Document Clang's expectations of the C standard library.

Ralf via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 6 10:20:58 PDT 2023


RalfJung added a comment.

It would probably be worth including all string functions that take a length in such a DR. In Rust we are currently puzzling over whether calling 0-length `memcmp` on something like `(char*)42` is okay or not. If not we'd have to introduce a pretty pointless branch.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86993/new/

https://reviews.llvm.org/D86993



More information about the cfe-commits mailing list