Modules/string

From MSX Game Library

< Modules

string

Code: string.h

Category: Core

Dependencies: None

Samples:

The string module manages operations on characters and strings.

Usage

To use this module, include "string.h" in your source code, and add "string" to the modules list (LibModules) in your project's configuration file (project_config.js).


Samples

See module use cases in the sample programs:

Settings

Library configuration (msxgl_config.h):

// Support for integer to ASCII string converter functions
#define STRING_USE_FROM_INT8		TRUE	// Signed 8-bits integer to string
#define STRING_USE_FROM_UINT8		TRUE	// Unsigned 8-bits integer to string
#define STRING_USE_FROM_INT16		TRUE	// Signed 16-bits integer to string
#define STRING_USE_FROM_UINT16		TRUE	// Unsigned 16-bits integer to string

// Support for sprintf style formating function
#define STRING_USE_FORMAT			TRUE
#define STRING_USE_INT32			TRUE	// Add support for 32-bits integer

Dependencies

Dependency on other modules: None

Documentation