Subject: Re: CVS commit: syssrc/sys/arch/i386/i386
To: Chris Gilbert <chris@dokein.co.uk>
From: Bang Jun-Young <junyoung@netbsd.org>
List: source-changes
Date: 12/09/2002 11:46:42
On Mon, Dec 09, 2002 at 11:42:44AM +0900, Bang Jun-Young wrote:
> 	if (strstr(brandstr, "Intel") == 0)
> 		vendor = "Intel"; /* we don't need (R) */
> 	if (strstr(brandstr, "Pentium(R) 4") == 0)
> 		name = "Pentium 4"; /* we don't need (R) and the rest */
> 	else if (strstr(brandstr, "Xeon") == 0)
> 		name = "Xeon"; /* we don't need (TM) and the rest either */
> 	else if (strstr(brandstr, "Mobile") == 0 &&
> 	    strstr(brandstr, "Pentium(R) 4") == 0)
> 		name = "Mobile Pentium 4"; /* "Mobile Intel(R) ..." */ 
> 	...

Euch. strstr(3) returns a pointer if it succeeds. == 0) -> != NULL)

Jun-Young

-- 
Bang Jun-Young <junyoung@netbsd.org>