On Thu, Jun 13, 2002 at 02:13:48PM +1000, Martin Towell wrote:
> But what about the pointer &cp2
>
> If endptr is not NULL, strtol() stores the address of the first
> invalid character in *endptr.
In you example endptr is always NULL!
> If there were no digits at all,
> strtol() store
2002 2:12 PM
To: Martin Towell
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] converting C to PHP
On Thu, Jun 13, 2002 at 01:12:18PM +1000, Martin Towell wrote:
> I'm converting some C functions to PHP and have come across this:
>
> int skipf(..., char *format)
> {
> /* ...
On Thu, Jun 13, 2002 at 01:12:18PM +1000, Martin Towell wrote:
> I'm converting some C functions to PHP and have come across this:
>
> int skipf(..., char *format)
> {
> /* ... */
> cp = format;
> char *cp, *cp2;
> multiplier = strtol(cp, &cp2, 10);
> /* ... */
> }
>
>
> How can I imp
3 matches
Mail list logo