On Mon, Jul 14, 2008 at 11:15 AM, Star Liu <[EMAIL PROTECTED]> wrote:
> On Mon, Jul 14, 2008 at 8:52 AM, sanool. LUPA <[EMAIL PROTECTED]> wrote:
>> the func strcasestr not return a pointer...
>> so, try to use as follows:
>>
>> if((char*)strcasestr(comment, "</xmp")!=NULL)
>>
>> but its just a warning, forget it...
>
I've tested that, in AMD64, it needs to be like this, for the address
is 64 bits.
char* n=(char*)((long)(strcasestr(a,b)));
if(n==NULL) fprintf(stdout,"not found");
else fprintf(stdout,n);
--
Regards!
Star
Shanghai, China
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]