Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: syssrc/sys/arch/i386/i386



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@localhost>



Home | Main Index | Thread Index | Old Index