Re: [PHP-DEV] _php3_memnstr errors From: Sascha Schumann (sas <email protected>)
Date: 12/20/98

On Sun, 20 Dec 1998, Shane Caraveo wrote:

> Rasmus Lerdorf wrote:
> >
> > > string.c(1244) : error C2036: 'void *' : unknown size
> > > string.c(1244) : error C2036: 'void *' : unknown size
> > > string.c(1245) : error C2036: 'void *' : unknown size
> > > string.c(1245) : error C2036: 'void *' : unknown size
> > >
> > > I'm going to look at and try to fix, but if someone know's what's a
> > > going on, please take a look.
> >
> > MSVC doesn't like void pointers, I guess. I don't think there is any real
> > reason to have these be void *'s. Sascha, this is you code. Why did you
> > make them void *'s?

Standard mem* functions take void * pointers. Anyway, it will also work
with char *

> >
> > -Rasmus
>
> Ok, changing to unsigned char * fixed the compiler errors.

ok

          Regards,
                                                                                
                            Sascha Schumann |
                                 Consultant | finger sas <email protected>
                                            | for PGP public key

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>