|
From: Abhijit S. <mu...@gm...> - 2002-09-03 17:03:15
|
> Hi List,
>
>
>
> I have an unsigned char* with the value 12345678 (as int) and I need to
> compare the first 4 numbers with another value (unsigned char).
>
> Does someone have an idea ???
Greets, Christian.
Is this what you're looking for?
int foo = 12345678;
unsigned char bar = 23;
while(foo > 255)
foo /= 10;
if(foo == bar)
// whatever
___________________________________________________________
Abhijit Shylanath
E-mail: mu...@gm... || ibr...@bi...
Web-site: http://mudeth.tripod.com/
|