Is string compare case-sensitive in C?

It is case-insensitive . The behavior is NOT undefined (it is well-defined) if either string is a null ptr. Regular strncmp() has undefined behavior if either string is a null ptr (see: https://en.cppreference.com/w/cpp/string/byte/strncmp).

Sizin İçin Seçtik  What are the differences among 2G 3G and 4G technologies in mobile communication system?

Leave a Reply

Your email address will not be published. Required fields are marked *

Is string compare case sensitive in C?

It is case-insensitive . The behavior is NOT undefined (it is well-defined) if either string is a null ptr. Regular strncmp() has undefined behavior if either string is a null ptr (see: https://en.cppreference.com/w/cpp/string/byte/strncmp).

Sizin İçin Seçtik  Which modifiers are used for case insensitive search?

Leave a Reply

Your email address will not be published. Required fields are marked *