Standard C/C++ Libraries

The MoSync SDK comes with several useful standard C and C++ code libraries to ease code development.

The C++ Standard Template Library (STL) is a feature-packed code library that will be familiar to many programmers thanks to its all-round usefulness to computer science and industry.It provides many powerful algorithms, containers, associative arrays, and iterators to simplify data handling in advanced applications. We have an example application that demonstrates many of the functions of this library, HelloSTL, and a C++ STL Project template.

The C Newlib Library is particularly suited for mobile devices and embedded systems. It is a conglomeration of several library parts, all under free software licenses. Newlib provides subroutines for handling files, environment variables, processes, output streams, signals, and memory. (Note: MoSync does not implement the signals and locale sections of the library). We have a C Newlib Project template.

MoSync mastdlib Library is our cut down version of the Standard C Library, libc. It contains the basic string conversions and random number generators. Great when your applications need a small footprint.

Official reference pages:

Developer's Guides

  • C++ Standard Template Library (STL)

    The C++ Standard Template Library provides a set of common classes and interfaces that greatly extend the core C++ language. It provides a set of classes such as containers, associative arrays, iterators, functions objects, and strings. It also provides algorithms for counting, sorting,  finding, coping, and replacing elements in a container.

  • The MAFS C++ Library

    MAFS is a reimplementation of the Standard C File I/O routines. It operates on either a binary image attached as a resource or using local stores for permanent storage. The binary image is actually a virtual filesystem generated using our tool Bundle.