Standard Library Functions
According to wikipedia ...

Standard stands for a level of quality or attainment.
Library stand for collection of book.
Function is an activity that is for a purpose of a person or thing.
Therefore The Standard Library Functions are defined as ...
"Standard Library are the collection of subprograms (function) which is used to develop other programs or software."
♥ Types of Functions
1- Library Functions (Header Files function) //In this post
2- User Defined Function (User Defined Functions) // In next post
♣ Character Functions
Character Functions, are the collection of all the function related with characters. The header file is "ctype.h" is used to use following functions.
# isalnum() -
is - " Is " is used to form question.
al- al stands " alphabet " .
num- num stands for " number " .
Isalnum() is a function, which is defined in ctype.h and it is used to check whether the given or entered character is alphabet or number.
# isalpha() -
is - " Is " is used to form question.
alpha - alpha stands " alphabet "
Isalpha() is a function, which is defined in ctype.h and it is used to check whether the given or entered character is alphabet or not.
# isdigit() -
is - " Is " is used to form question.
digit - digit stands " digit " .
Isdigit() is a function, which is defined in ctype.h and it is used to check whether the given or entered character is digit or not.
# islower() -
is - " Is " is used to form question.
lower - lower stands " small alphabet " .
Islower() is a function, which is defined in ctype.h and it is used to check whether the given or entered character is lowercase or not.
# isupper() -
is - " Is " is used to form question.
upper - lower stands " small alphabet " .
Isupper() is a function, which is defined in ctype.h and it is used to check whether the given or entered character is upper case or not.
# toupper() -
to - " to " is used to perform task.
upper - upper stands " capital alphabet " .
toupper() is a function, which is defined in ctype.h and it is used to convert all characters (alphabet) into upper case .
# tolower() -
to - " to " is used to perform task.
lower - upper stands " capital alphabet " .
tolower() is a function, which is defined in ctype.h and it is used to convert all characters (alphabet) into lower case .
♣ String Functions
# strcat() -
str - stands for string.
cat - stands for concatenation.
strcat() function is used to concatenate two or more strings together. The header file which is used to invoke strcat() function is string.h .
# strcmp() -
str - stands for string.
cmp - stands for compare.
strcmp() function is used to compare two strings together. The header file which is used to invoke strcmp() function is string.h .
# strcpy() -
str - stands for string.
cpy - stands for copy.
strcpy() function is used to copy from one to another. The header file which is used to invoke strpy() function is string.h .
str - stands for string.
len - stands for length.
strlen() function is used to return length of the given string. The header file which is used to invoke strlen() function is string.h .
♣ Mathematical Functions
These functions is used in maths operations.The header file is "math.h" is used to use following functions.
# fabs() -
f - f stands for floating point number
abs - absolute numbers
It gives the absolute value of given floating point number.
# abs() - It gives the absolute value of given integer number. It is also defined in stdio.h header file.
# log() - This function return natural log of the given argument.
# log10() - This function return log base 10 value of the given argument.
# pow() - This function returns power of the x raise to power y.
# sqrt() - This function returns square root of the given argument.
# sin() - The function returns sine function of the given argument and the argument must be in radian.
# cos() - The function returns cosine function of the given argument and the argument must be in radian.
♣ Other functions
# randomize() - This function provide random seed to the random function.
# random() - This function is used to generate any number between 0 to (n-1) when n is the argument or a given number
Note- Both functions used together.
By - Somesh Sah
Comments
Post a Comment