|
Required APIs and functions
How do I know whether all the required APIs are supported in OS/400?
First, you should run the API analysis script. To look up a specific API or group of APIs, try the API finder.
How do I port source code that contains APIs and functions not supported in OS/400?
See our Web page, Example Code web page containing actual implementations of some common APIs and workarounds, providing similar functions, for others.
Use the following macros:
#define bcmp(f,t,s) (memcmp((t),(f),(s)))
#define bcopy(S, D, L) (memcpy((D), (S), (L)))
#define bzero(t,s) (memset((t),(0),(s)))
#define index(str, char) strchr(str, char)
#define random() rand()
#define rindex(str, char) strrchr(str, char)
#define srandom(x) srand(x)
#define _toupper toupper
[BACK]
|