Donate

0 Some Useful library functions-Header file

Some Useful library functions there is a vast collection of function .Some of them are grouped together and listed below. String Function:

String Function:


strcpy -
Copies one string into another.

strcat - Appends one string to another.

strcmp - Compare one string to another.

strcmpi - Compare one string to another without case sensitive.

strlen - Calculates the length of a string.

strrev - Reserve a string.

Mathematical Function:

abs - Returns absolute value of an integer.

sin - Calculate the sine.

cos - calculate the arc cos.

tan - Calculate the arc tangent.

acos - Calculate the arc cosine.

asin - Calculate the arc sine.

atan - Calculate the arc tangent.

ceil - Rounds up.

floor - Rounds down.

log - calculate the natural logarithm of x.

pow - calculate x to the power of y.

sqrt - Calculate the positive square root of input value.

Date & Time Function:

asctime - Converts date and time to ASCII.

clock - Determine process time.

getdate - gets system date

gettime - Gets system time.

setdate - sets DOS date

settime - Sets system time.

time - Gets time of day.

Utility Function:

abort() - Abnormally terminates a process.

bsearch() - Binary search of an array.

tolower() - Translate character to lower case.

toupper() - Translate character to upper case.

qsort() - Sorting using the quick sort algorithm.

exit() - Terminate execution of a program.

free() - Frees allocated block.

Character Class Test Functions:


isupper() - Check and returns non-zero if c is an upper case letter (A-Z).

islower() - Check and returns non-zero if c is a lower case letter (a-z).

isspace() - check and returns non-zero if c is a space tab, carriage return, newline, vertical tab, form feed etc.

isascii() - Tests whether a character is an ASCII (0 to 127) character.

isalpha() - Check and returns non-zero if c is a letter (A-Z or a-z).

iscntrl() - Tests whether a character is a control character.

toascii() - Translate character to ASCII format.

tolower() - Translate character to upper case.

If you enjoyed this post, make sure you subscribe to my RSS feed!


0 Responses to "Some Useful library functions-Header file"

Post a Comment