Skip to content
tiffany352 edited this page Aug 10, 2012 · 2 revisions

Sypnosis

#include "common/string.h"

const il_Common_String il_Common_fromC(const char * s);
const char * il_Common_toC(const il_Common_String s);
const il_Common_String il_Common_concat(...);

Description

The string.h header is a WIP header for a basic string handling library for IL. It uses a more safe form of strings which uses a pointer to the beginning of the string (the data member), and a value representing its size (the size member).

The fromC macro will convert a C string literal or other null-terminated string into an IntenseLogic string.

The toC macro will do the opposite, converting an IL string to a null terminated one.

The concat macro will take any number of arguments in the form of non-null IL srings, and concatenate them into a single string which will be returned. This function does not modify its arguments.

See Also

Clone this wiki locally