Re: calculating length of an substring
- From: William Pursell <bill.pursell@xxxxxxxxx>
- Date: Fri, 29 Feb 2008 13:59:46 -0800 (PST)
On Feb 29, 7:06 pm, Martin Ambuhl <mamb...@xxxxxxxxxxxxx> wrote:
But your subtraction is a pointer from an int, not a pointer from a
pointer. If you _must_ use an unneccesary cast, use
len = (int)(s - e);
but that means exactly the same thing as the cast-less
len = s - e;
s - e is of type ptrdiff_t, not int.
.
- References:
- calculating length of an substring
- From: brasilino@xxxxxxxxx
- Re: calculating length of an substring
- From: Martin Ambuhl
- calculating length of an substring
- Prev by Date: Re: Is there stack associated when a executing an inline function?
- Next by Date: WinAPI videos? how to play videos beside avi?
- Previous by thread: Re: calculating length of an substring - TPA
- Next by thread: WinAPI videos? how to play videos beside avi?
- Index(es):
Relevant Pages
|