beautypg.com

Diskc_format, Diskd_format, Diskc_totalsize – Argox PA-20 Programming Guide User Manual

Page 49: Diskd_totalsize

background image

PT-20 Programming Guide

47

to the file (includes the null character). In case of error, writeln

returns an integer value of -1 and an error code is set to the global

variable fErrorCode to indicate the error condition encountered.

Possible error codes and their interpretation are listed below.

fErrorCode: 2:File handle is NULL.

7:fd is not a file handle of a previously opened file.

9:no null character found in buffer

10:No more free file space for file extension.

DiskC_format

Purpose: Format disk C.

Syntax: int DiskC_format(void);

Example call: DiskC_format ( );

Includes:

#include “SDK.h ”

Description: The DiskC_format function formats disk C.

Returns: 0 : Format false。

1 : Format OK。

fErrorCode: None

DiskD_format

Purpose: Format disk D.

Syntax: int DiskD_format (void);

Example call: DiskD_format ( );

Includes:

#include “SDK.h ”

Description: The DiskC_format function formats disk D.

Returns: 0 : Format false。

1 : Format OK。

fErrorCode: None

DiskC_totalsize

Purpose: Checking the total space in disk C.

Syntax: unsigned int DiskC_totalsize (void);

Example call: DiskC_totalsize ( );

Includes:

#include “SDK.h ”

Description: The DicskC_totalsize function returns the used space in disk C.

Returns: 0xffffffff : Disk C unformatted.

Others : The total space in disk C.(Bytes)

fErrorCode: None

DiskD_totalsize

Purpose: Checking the total space in disk D.

Syntax: unsigned int DiskD_ totalsize (void);