API and its common characteristics

API and its common characteristics



Answer:

APIs – a set of application programming interface functions(commonly known as System calls) that can be called by user’s programs to perform system-specific functions.

API COMMON CHARACTERISTICS

• API return -1 to indicate the execution has failed
• Global variable errno is set with an error code
• Perror function prints diagnostic message of the error to the standard output or calls strerror with errno as an argument.

Common functions

• Determine system configuration and user information
• File manipulation
• Process creation and control
• Interprocess communication
• Network communication

No comments:

For Query and doubts!

Powered by Blogger.