mirror of
https://github.com/Z3Prover/z3
synced 2025-06-19 12:23:38 +00:00
Use nullptr.
This commit is contained in:
parent
f01328c65f
commit
76eb7b9ede
625 changed files with 4639 additions and 4639 deletions
|
@ -21,12 +21,12 @@ Revision History:
|
|||
#include <cstring>
|
||||
|
||||
inline char const * get_extension(char const * file_name) {
|
||||
if (file_name == 0)
|
||||
return 0;
|
||||
char const * last_dot = 0;
|
||||
if (file_name == nullptr)
|
||||
return nullptr;
|
||||
char const * last_dot = nullptr;
|
||||
for (;;) {
|
||||
char const * tmp = strchr(file_name, '.');
|
||||
if (tmp == 0) {
|
||||
if (tmp == nullptr) {
|
||||
return last_dot;
|
||||
}
|
||||
last_dot = tmp + 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue