SOME FUNCTIONS of C
ARITHMETIC FUNCTION
abs:- return absolute value of integer
fabs:-find absolute value of int
fmod:- break down string into int & fractional part
hypot(p,b):- return hypoteneous of triangle
DATA CONVERSION
atof:-String to float
atoi:-string to integer
atol:-string to long
ecvt ; gcvt ; fcvt:-double to string
itoa:- int to string
ltoa:-long to string
strtod:-string to decimal
strtoul:-string to unsigned long integer
CHARACTER TESTING
TESTING FOR
isupper:- for upeercase
islower:- for lowercase
isspace:-containing space
isxdig:- for hexadecimal
isdigit:- for digit
isalnum:-is alphanumeric
tolower:- for lowercase if upper than convto lowercase
toupper:- for upeercase if lower than convto uppercase
STRING MANIPULATION
strcat:- concat/append two string
strchr(str,'ch'):- find first occurance of given character in string
strcmp:-compare two string
strcpy(char*destination,const char*source):-copy the character form sourceto destination
strnicmp ;strcmpi ;stricmp:- copy without regard to case
strlen:-return length of string
strlwr , strupr:- convert string to lower & upper respectively
strrev:- reverse the string
strset:- set all string to given char destination
strstr:- find first occurance of string in a given string
strstr:- find first occurance of char ion given string
SEARCHING & SORTING FUNCTION
bsearch:- binary search
lfind:- linear search
qsort:- quick sort
I/O FUNCTION
close:- close of file
open :- open of file
eof:- reach end of file
feof:-check if eof is reached or not
printf:- print o/p
fprintf:- write to file the formatted data
sprintf:- print o/p in character of array
getch():- return value of char
getche()- echo value of char on screen
fgetchar():- read char from keyboard
fget:- read char from file
fgetc :-read char from file
fputc:- write char to file
fputchar:- write char to screen
ARITHMETIC FUNCTION
abs:- return absolute value of integer
fabs:-find absolute value of int
fmod:- break down string into int & fractional part
hypot(p,b):- return hypoteneous of triangle
DATA CONVERSION
atof:-String to float
atoi:-string to integer
atol:-string to long
ecvt ; gcvt ; fcvt:-double to string
itoa:- int to string
ltoa:-long to string
strtod:-string to decimal
strtoul:-string to unsigned long integer
CHARACTER TESTING
TESTING FOR
isupper:- for upeercase
islower:- for lowercase
isspace:-containing space
isxdig:- for hexadecimal
isdigit:- for digit
isalnum:-is alphanumeric
tolower:- for lowercase if upper than convto lowercase
toupper:- for upeercase if lower than convto uppercase
STRING MANIPULATION
strcat:- concat/append two string
strchr(str,'ch'):- find first occurance of given character in string
strcmp:-compare two string
strcpy(char*destination,const char*source):-copy the character form sourceto destination
strnicmp ;strcmpi ;stricmp:- copy without regard to case
strlen:-return length of string
strlwr , strupr:- convert string to lower & upper respectively
strrev:- reverse the string
strset:- set all string to given char destination
strstr:- find first occurance of string in a given string
strstr:- find first occurance of char ion given string
SEARCHING & SORTING FUNCTION
bsearch:- binary search
lfind:- linear search
qsort:- quick sort
I/O FUNCTION
close:- close of file
open :- open of file
eof:- reach end of file
feof:-check if eof is reached or not
printf:- print o/p
fprintf:- write to file the formatted data
sprintf:- print o/p in character of array
getch():- return value of char
getche()- echo value of char on screen
fgetchar():- read char from keyboard
fget:- read char from file
fgetc :-read char from file
fputc:- write char to file
fputchar:- write char to screen
No comments:
Post a Comment