Difference between revisions of "Modules/string"
From MSX Game Library
< Modules
(Created page with "{{MODULE |name=string |category=Core |dependency1= |dependency2= |dependency3= |sample1=s_dos2 |sample1_desc= |sample2= |sample2_desc= |sample3= }}") |
(No difference)
|
Latest revision as of 22:36, 10 January 2024
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