Guardian C Library Calls Reference Manual
Guardian TNS C Library Calls Reference Manual—128833 1-1
1
I
ntro
Run-Time Library
C is a relatively small, yet powerful and effective, programming language. With the 
extensive run-time library C provides, C becomes an excellent language for a wide 
variety of both systems and applications programming projects. For example, you can 
use C to write:
•
System utilities
•
Interpreters, compilers, and other program-development tools
•
Servers for SCREEN COBOL and Pathsend requesters
•
Remote Server Call (RSC) requesters
•
Database applications using NonStop SQL/MP
•
Data communication managers, utilities, and applications
Tandem C conforms to the C language standard as set forth in ISO/IEC 9899:1990, 
Programming Languages–C. (This is technically identical to ANSI C X3.159-1989, 
Programming Language C.) Tandem includes several extensions to ISO standard C that 
makes C an effective language for writing applications that run on Tandem NonStop 
systems. These extensions include support for fault tolerant process pairs and systems 
programming.
C programs compiled by the TNS C compiler and optionally processed by the 
Accelerator program use the Guardian TNS C run-time library described in this manual. 
Programs compiled with the TNS/R native C compiler use the Guardian TNS/R native C 
run-time library. Refer to the Guardian TNS/R Native C Library Calls Reference Manual 
for details.
Macros that are not in the library are expanded at preprocessing time.
The Guardian TNS C run-time library consists of the following parts:
The Guardian TNS C run-time library also consists of the model-independent library, 
CLIB. CLIB is part of system library. Tandem recommends that you do not bind CLIB 
into your programs.
CSMALL The model-dependent version of the C run-time library for the 
small-memory model (size of pointer and size of type int are 16 bits).
CLARGE The model-dependent version of the C run-time library for the 
large-memory model (size of pointer is 32 bits and size of type int is 
16 bits).
CWIDE The model-dependent version of the C run-time library for the 
wide-data model (size of pointer and size of type int are 32 bits)
CNONSTOP The C fault tolerant programming functions for use with CLARGE 
and CWIDE.










