DataMuseum.dk

Presents historical artifacts from the history of:

Commodore CBM-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Commodore CBM-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦acb784f4a⟧ TextFile

    Length: 131 (0x83)
    Types: TextFile
    Notes: UNIX file
    Names: »abs.c«

Derivation

└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
    └─⟦f4b8d8c84⟧ UNIX V7 Filesystem
        └─ ⟦this⟧ »libc/gen/abs.c« 

TextFile

/*
 * Return integer absolute value
 * (This doesn't work on the largest negative integer)
 */

abs(x)
{
	return (x<0 ? -x : x);
}