Annotation of coherent/b/lib/libc/gen/labs.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * C general utilities library.
                      3:  * labs()
                      4:  * ANSI 4.10.6.3.
                      5:  * Long integer absolute value.
                      6:  * This does not work on the largest negative long integer.
                      7:  */
                      8: 
                      9: #if    0
                     10: #include <stdlib.h>
                     11: #endif
                     12: 
                     13: long
                     14: labs(j) register long j;
                     15: {
                     16:        return (j < 0 ? -j : j);
                     17: }
                     18: 
                     19: /* 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.