1. Memory allocation
2. File operation
3. Disk Directory Management
4. String manipulation
5. Type conversion
6. Time and date management
A. BORLAND C + + BUILDER VCL memory management function
1. AllocMem
Allocates the specified bytes of memory to the team and initializes each byte allocated to 0. The function prototype is as follows:
void * __fastcall AllocMem (cardinal Size);
2. Sysfreemem
Frees the specified memory block. The function prototype is as follows:
int __fastcall sysfreemem (void * P);
3. Sysreallocmem
Requires the memory specified by the parameter size to be reassigned. The function prototype is as follows:
void * __fastcall sysreallocmem (void * P, int Size);
Two. Borland C + + Builder VCL file manipulation functions
1. FileOpen
Opens the specified file and, if returned as a positive number, indicates that the operation succeeded and the return value is a file handle: If the return value is-1, the table
The operation failed with the following function prototype:
int __fastcall FileOpen (const system::ansistring filename,int Mode);
2. Filecreate
Creates a new file with the specified file name, if returned as a positive number, the operation succeeds, and the return value is a file handle.
If the return value is-1, the operation fails. The function prototype is as follows:
int __fastcall filecreate (const System:: ansistring FileName);
3. Fileread
Reads the specified byte of data from the file into the buffer, the function returns the number of bytes actually read, and the function prototype is as follows;
int __fastcall fileread (int handle,void *buffer,int Count);
4. FileWrite
Writes the data for the buffer to the current location of the specified file if the operation succeeds, the function returns the actual written word
The number of sections, if returned to 1, indicates that the operation generated an error, and the function prototype is as follows:
int __fastcall filewrite (int handle,const void *buffer,int Count);