If you must perform platform-specific activities, try to isolate that code in one spot so it can easily be changed when porting to another platform. The description of the function should include a section that demonstrates the syntax of the code. Now you can call the function in the same way it appears in the syntax section. If you make a mistake, the compiler will discover it by comparing your function call to the function prototype in the header, and tell you about your error. Creating your own libraries with the librarian You can collect your own functions together into a library.
Most programming packages come with a librarian that manages groups of object modules.
Place the finished library where the other libraries reside, so the linker can find it. When you use your library, you will have to add something to the command line so the linker knows to search the library for the functions you call. You must find all the details in your local manual, since they vary from system to system. Corp. All Rights Reserved.