Important C Functions |C Library Functions |Standard C Library Functions

FunctionUse
absReturns the absolute value of an integer
powCalculates a value raised to a power
sqrtFinds square root
floorFinds largest integer less than or equal to argument
ceilFinds smallest integer greater than or equal to argument
roundRounds floating value to nearest integer value
expFind exponential value
atoiConverts string to int
exitEnds a program normally
abortStops a program abnormally
assertChecks if a given expression is true
isalphaChecks if a character is alphabetic or not
isdigitChecks if a character is digit or not
islowerChecks if a character is lowercase or not
isupperChecks if a character is uppercase or not
tolowerConverts an uppercase character to lowercase
toupperConverts a lowercase character to uppercase
strcatConcatenates one string to another
strcmpCompare one string to another
strcmpiCompares two strings without regard to case
strcpyCopies one string to another
strdupDuplicates a string
strcharFinds first occurance of a given characternin a string
strlenFinds length of a string
strlwrConverts a string to lowercase
struprConverts a string to uppercase
strrevReverse a string
closeCloses a file
fcloseCloses a file
feofDetects end-of-file
getcReads a character from a file
fgetcReads a character from a file
getcharReads a character from keyboard (macro version)
fgetcharReads a character from keyboard (function version)
getsReads a line from keyboard
fgetsReads a string from a file
getchReads a character from the keyboard
getcheReads a character from keyboard and echoes it
openOpens a file
fopenOpens a file
printfWrites formatted data to screen
fprintfWrites formatted data to a file
sprintfWrites formatted output to a string
putcWrites a character to a file (macro version)
fputcWrites a character to a file
putcharWrites a character to screen (macro version)
fputcharWrites a character to screen (function version)
putsWrites a line to file
fputsWrites a string to file
putchWrites a character to the screen
scanfReads formatted data from keyboard
fscanfReads formatted data from a file
sscanfReads formatted input from a string
fseekRepositions file pointer to given location
lseekRepositions file pointer to a given location
tellGets current file pointer position
ftellGets current file pointer position
kbhitChecks for a keystroke at the keyboard
readReads data from a file
fread Reads data from the file and stores it in a buffer.
writeWrites data to a file
fwrite Writes data to a file
rewindRepositions file pointer to beginning of a file
callocAllocates a block of memory
mallocAllocates a block of memory
reallocReallocates a block of memory
freeFrees a block allocated with malloc

Leave a Comment