File:  [MW Coherent from dump] / coherent / b / lib / libc / gen / labs.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:35 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/*
 * C general utilities library.
 * labs()
 * ANSI 4.10.6.3.
 * Long integer absolute value.
 * This does not work on the largest negative long integer.
 */

#if	0
#include <stdlib.h>
#endif

long
labs(j) register long j;
{
	return (j < 0 ? -j : j);
}

/* end of labs.c */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.