Query: itofix
OS: opendarwin
Section: 3alleg4
Links: opendarwin man pages all man pages
Forums: unix linux community forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
itofix(3alleg4) Allegro manual itofix(3alleg4)NAMEitofix - Converts an integer to fixed point. Allegro game programming library.SYNOPSIS#include <allegro.h> fixed itofix(int x);DESCRIPTIONConverts an integer to fixed point. This is the same thing as x<<16. Remember that overflows (trying to convert an integer greater than 32767) and underflows (trying to convert an integer lesser than -32768) are not detected even in debug builds! The values simply "wrap around". Example: fixed number; /* This conversion is OK. */ number = itofix(100); ASSERT(fixtoi(number) == 100); number = itofix(64000); /* This check will fail in debug builds. */ ASSERT(fixtoi(number) == 64000);RETURN VALUEReturns the value of the integer converted to fixed point ignoring overflows.SEE ALSOfixtoi(3alleg4), ftofix(3alleg4), fixtof(3alleg4), ex12bit(3alleg4), ex3buf(3alleg4), ex3d(3alleg4), exblend(3alleg4), excustom(3alleg4), exfixed(3alleg4), exlights(3alleg4), exspline(3alleg4), exsprite(3alleg4), exstars(3alleg4) Allegro version 4.4.2 itofix(3alleg4)
Related Man Pages |
---|
ex3d(3alleg4) - centos |
ex3d(3alleg4) - opendarwin |
ex3d(3alleg4) - redhat |
ex3d(3alleg4) - osx |
ex3d(3alleg4) - v7 |
Similar Topics in the Unix Linux Community |
---|
Can we convert a '|' file into a fixed lenght??? |
Debian: 2071-1: libmikmod: buffer overflows |