Download GCTR - grifo¨ COM

Transcript
ITALIAN TECHNOLOGY
grifo®
APPENDIX B: LIBRARY FUNCTIONS CHANGED
CALLOC
Definition:
#include <ALLOC.H>
void* calloc(unsigned int items, unsigned int size);
Library:
LCTR_T.LIB
Description:
Function calloc allocates a memory area and resets it. The amount of memory allocated by a call to
this function corresponds to items*size bytes, must be lower than 64K Bytes and is allocated in the
heap area.
Example:
struct zoo*park1;
park1=calloc(105,sizeof(struct zoo));
Parameters returned:
Function calloc returns a pointer to the memory allocated if it works successfully or a NULL pointer
in case of error. The pointer returned is NULL also when available memory is insuffucent to fulfil
completely the request.
CLREOL
Definition:
#include <CONIO.H>
void clreol(void);
Library:
CL.LIB
Description:
Function clreol deletes all the characters from current cursor position to the end of the line without
moving the cursor position. If a serial line has been selected as output console device it will receive
the ADDS View-Point codes for this action.
Example:
integer i;
cputs("Insert number of pieces=").
clreol();
cscanf("%d",&i);
Parameters returned:
Function clreol returns nothing.
GCTR
Rel. 5.40
Page B-1