Porting Central
Skip to main content

Porting Central

Example Code

Many times it helps to see an example of how to use a function. The following examples are ILE C programs that use typical UNIX functions and show the use of various functions. Some good examples for OS/400 PASE are in Chapter 10 of the Porting UNIX Applications Using iSeries PASE (SG24-5970-00) Redbook. (Note, however, that much of the Redbook has been superseded by standard documentation in the iSeries Information Center.) There are numerous examples of program and procedure calls between ILE and PASE.

The following examples are written in C language and compiled for Integrated Language Environment (ILE)

Multiprogramming

Network

Text Processing

Screen I/O

Miscellaneous

API Implementation Examples

These code samples that are furnished by IBM are to provide an illustration of concept. These examples have not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or function of these programs. All programs contained herein are provided to you "AS IS". THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED.