Y
Hacker News
new
|
ask
|
show
|
jobs
by
widdershins
173 days ago
I don't find that convention unusual. That's how I (and everyone at my company) writes code every day. If an argument is a pointer, that means it may be null. If it may not be null, it should be a reference.
1 comments
amelius
173 days ago
And the libraries that you use?
E.g.,
std::size_t std::strlen(const char* str);
link
E.g.,
std::size_t std::strlen(const char* str);