buffer overflow

C

Chris Dollin

SM said:
My wrappers treat 0 as "" except compare(0,"")<0. It's arbitrary
in the same sense that O! = 1; a number of answers could be argued
correct, but one has to be chosen.

I'm not sure that 0! = X for X /= 1 could be argued correct, if one
wants to keep the identity N! = N x (N-1)! for N > 0.

`(char *) 0` isn't a string, it's the absence of a string (ignoring for
the moment that not all valid non-null char*'s are strings anyway).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top