Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ intro(3) — GL1 W2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ar(1)

cc(1)

fortran(1)

ld(1)

nm(1)

intro(2)

stdio(3S)

INTRO(3)  —  Silicon Graphics

NAME

intro − introduction to subroutines and libraries

SYNOPSIS

#include <stdio.h>

#include <math.h>

#include <gl.h>

#include <get.h>

#include <gl.h>

DESCRIPTION

This section describes functions found in various libraries, other than those functions that directly invoke UNIX system primitives, which are described in Section 2 of this volume.  Certain major collections are identified by a letter after the section number:

(3C) These functions, together with those of Section 2 and those marked (3S), constitute the Standard C Library libc, which is automatically loaded by the C compiler, cc(1). The link editor ld(1) searches this library under the −lc option.  Declarations for some of these functions may be obtained from #include files indicated on the appropriate pages. 

(3M) These functions constitute the Math Library, libm. They are not automatically loaded by the C compiler, cc(1); however, the link editor searches this library under the −lm option.  Declarations for these functions may be obtained from the #include file <math.h>. 

(3S) These functions constitute the “standard I/O package” (see stdio(3S)). These functions are in the library libc, already mentioned. Declarations for these functions may be obtained from the #include file <stdio.h>. 

(3X) Various specialized libraries.  The files in which these libraries are found are given on the appropriate pages. 

IRIS Graphics Library

The functions in the IRIS Graphics Library are documented in the IRIS User’s Guide. 

DEFINITIONS

A character is any bit pattern able to fit into a byte on the machine.  The null character is a character with value 0, represented in the C language as ’\0’.  A character array is a sequence of characters.  A null-terminated character array is a sequence of characters, the last of which is the null character. A string is a designation for a null-terminated character array. The null string is a character array containing only the null character.  A NULL pointer is the value that is obtained by casting 0 into a pointer.  The C language guarantees that this value will not match that of any legitimate pointer, so many functions that return pointers return it to indicate an error.  NULL is defined as 0 in <stdio.h>; the user can include his own definition if he is not using <stdio.h>. 

FILES

/lib/libc.a
/lib/libm.a
/usr/lib/libgl.a

SEE ALSO

IRIS User’s Guide
IRIS Workstation Guide
ar(1), cc(1), fortran(1), ld(1), nm(1), intro(2), stdio(3S).

DIAGNOSTICS

Functions in the Math Library (3M) may return the conventional values 0 or HUGE (the largest single-precision floating-point number) when the function is undefined for the given arguments or when the value is not representable.  In these cases, the external variable errno (see intro(2)) is set to the value EDOM or ERANGE. 

Version 2.1  —  January 02, 1985

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026