commit
19b0df614d
1 changed files with 4 additions and 2 deletions
|
|
@ -390,7 +390,10 @@ i-th *unichar*. The iterator ``runes`` from the `unicode module
|
||||||
|
|
||||||
cstring type
|
cstring type
|
||||||
------------
|
------------
|
||||||
The ``cstring`` type represents a pointer to a zero-terminated char array
|
|
||||||
|
The ``cstring`` type meaning `compatible string` is the native representation
|
||||||
|
of a string for the compilation backend. For the C backend the ``cstring`` type
|
||||||
|
represents a pointer to a zero-terminated char array
|
||||||
compatible to the type ``char*`` in Ansi C. Its primary purpose lies in easy
|
compatible to the type ``char*`` in Ansi C. Its primary purpose lies in easy
|
||||||
interfacing with C. The index operation ``s[i]`` means the i-th *char* of
|
interfacing with C. The index operation ``s[i]`` means the i-th *char* of
|
||||||
``s``; however no bounds checking for ``cstring`` is performed making the
|
``s``; however no bounds checking for ``cstring`` is performed making the
|
||||||
|
|
@ -421,7 +424,6 @@ string from a cstring:
|
||||||
var cstr: cstring = str
|
var cstr: cstring = str
|
||||||
var newstr: string = $cstr
|
var newstr: string = $cstr
|
||||||
|
|
||||||
|
|
||||||
Structured types
|
Structured types
|
||||||
----------------
|
----------------
|
||||||
A variable of a structured type can hold multiple values at the same
|
A variable of a structured type can hold multiple values at the same
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue