Strerror and perror functions provide you with the standard error

Hi experts.
The library is built with functions and variables to make your program easy and helps you to report informative error messages in the customary format about the failure of a library call. The strerror and perror functions provide you with the standard error message for a given error code; the variable program_invocation_short_name gives you suitable access to the name of the program that create the error.
Can anyone help me with proper solution?
Thanks.
