...
Code Block | ||
---|---|---|
| ||
unsigned int ui1, ui2, udiff ;
/* Initialize ui1 and ui2 */
udiff = ui1 - ui2;
if (udiff > ui1 || udiff > ui2) {
/* handle error condition */
}
|
...
...
Code Block | ||
---|---|---|
| ||
unsigned int ui1, ui2, udiff ;
/* Initialize ui1 and ui2 */
udiff = ui1 - ui2;
if (udiff > ui1 || udiff > ui2) {
/* handle error condition */
}
|
...