STANDARD LIBRARY FUNCTIONS

Function                                Descriptions

abs()                                      Returns the absolute value of an integer.
absread()                               Read absolute disk sectors.
abswrite()                              Write absolute disk sectors.
arc()                                      Draws a circular arc.
asin()                                     Calculates the arc sine.
atof()                                     Converts a string to a floating point number.
bar3d()                                  Draws a 3-D bar.
biosdisk()                              ROM BIOS disk services.
bioskey()                               Keyboard interface,using BIOS services directly.
ceil()                                      Rounds up to a value representing the smallest integer that is greater than or equal to the argument.
chdir()                                   Changes current directory.
circle()                                   Draws a of the given radius at(x,y)
clearviewport()                      Clears the current viewport.
close()                                   Close a file.
closegraph()                           Shutdown the graphics system.
clrscr()                                   Clears the content of window in text mode.
coreleft()                                Returns the amount of RAM available for application programs.
cos()                                      Calculates the cosine of the angle specified in radians.
delay()                                   Suspends execution for an interval.
difftime()                                Computes the difference between the two times.
ellipse()                                  Draws an ellipse.
exit()                                      Terminates execution of the program.
fclose()                                   Closes file which has bees opened earlier.
fflush()                                    Flushes the specified stream.
fgetc()                                    Get a character from the specified stream.
fgets()                                     Gets a string from the specified stream.
findfirst()                                 Searches disk directory for the specified entry.
findnext()                                Continues findfirst() search.
floodfill()                                 flood-fills a bounded region.
fnsplit()                                   Split a files path into four components-drive,directory,name,extension.
fopen()                                   Opens a file in specified mode.
fread()                                    Reads data from a stream.
free()                                      Frees allocated block of memory.
fscanf()                                   Scans and formats input from the specified stream.
fseek()                                    Repositions a file pointer on the specified stream.
fwrite()                                   Writes the data to the stream.
gcvt()                                      Converts floating point number to a string.
getc()                                      Gets character from a file.
getch()                                    Gets character from keyboard,does not echo it to screen.
getcwd()                                 Gets current working directory.
getdisk()                                 Gets current drive number.
getimage()                              Saves the bit image of the specified region of the screen into memory.
getlinesettings()                       Gets the current lines styles,pattern ,and thickness.
getmaxx()                               Returns  Maximum x-coordinates of screen.
getmaxy()                               Returns  Maximum y-coordinates of screen.
getpixel()                                Gets the color of a specified pixel.
gets()                                      Gets a string from keyboard.
getvect()                                 Gets the address of a ROM BIOS/DOS routine fro Interrupt Vector table.
gotoxy()                                  Positions cursor at specified position on screen.
graphresult()                            Returns an error code fro the last unsuccessful graphics operation.
imagesize()                              Returns the number of bytes required to store a bit image.
initgraph()                                Initialises the graphics system.
int86()                                     Issues software interrupt for calling ROM BIOS routine.
intdos()                                   Issues software interrupt for calling DOS routine.
isalnum()                                 Tests whether a character is an alphabet or a number.
isascii()                                   Tests whether a character is an ascii(0 to 127) character.
iscntrl()                                   Tests whether the character is the control character.
itoa()                                       Converts an integer to a string.
kbhit()                                     Checks for currently available keystroke.
line()                                        Draws a line between two specified points.
lineto()                                     Draws a line from the current position to (x,y)
ltoa()                                       Converts long to a string.
malloc()                                   Allocates a block of memory in RAM.
memmove()                             Copies a block of specified number of bytes.
memset()                                 Sets a given block of memory to specified byte.
moveto()                                 Moves the current position(CP) to (x,y).
nosound()                                Turns the speaker off.
open()                                     Opens a file for reading or writing.
outtext()                                   Display a string in the view port.
outtextxy()                               Display a string at a specified location on the screen.
peek()                                     Returns the word at memory location specified by segment;offset.
pieslice()                                  Draws and fills a pieslice.
pow()                                      Calculates x to the power of y.
printf()                                     Writes formatted output to the screen.
putc()                                       Output a character to a file.
putchar()                                  Output a  character on stdout.
putimage()                                Outputs a bit image on the screen.
putpixel()                                  Draws a pixel at a specified point on the screen.
puts()                                       Outputs a string on the screen.
random()                                  Generates a random number.
randomize()                              Initialises random number generator with a random value.
read()                                       Reads a chuck of bytes from a file.
registerfarbgidriver()                 Register linked in the graphics driver code with the graphics system.
registerfarbgifont()                    Registers linked in font code.
restorecrtmode()                      Restores the screen mode to its pre initgraph setting.
rewind()                                   Re position a file pointer to the beginning of a stream.
scanf()                                      Receives input from keyboard.
sector()                                     Draws and fills an elliptical pie slice.
setcolor()                                  Sets the current drawing color.
setfillstyle()                                Sets the fill pattern and color.
setlinestyle()                              Sets the current line width and style.
settextjustify()                            Sets text justification for graphics function.
settextstyle()                              Sets the current text characteristics for graphics output.
setvect()                                    Sets the address of a routine in Interrupt vector table.
setviewport()                             Sets the current view port for graphics output.
 sin()                                          Calculates the sine of the angle specified in radians.
sound()                                      Turns the speaker on at a specified frequency.
sprintf()                                      Writes formatted output to a string.
strcat()                                       Appends one string to another.
strcmp()                                     Compares one string with another.
strcpy()                                      Copies one string into another.
strlen()                                       Calculates the length of a string.
strncmp()                                   Compares a portion of one string to a portion of another.
strncpy()                                    Copies a given number of bytes from one string into another.
strnset()                                      Sets a specified number of characters in a string to a given character.
strstr()                                        Scan a string for the occurrence of a given sub-string.
strupr()                                      Converts lowercase letters in a string to uppercase.
system()                                     Issues a DOS command.
textmode()                                 Puts screen in textmode.
time()                                         Gets time of day.
write()                                        Writes a chuck of bytes to a file.




Related Posts by Categories

0 komentar:

Posting Komentar