C String

From AdaCommons

Jump to: navigation, search

http://coreland.ath.cx/code/c_string

This library offers a set of subprograms for converting C strings and C character arrays to and from Ada strings. It also contains subprograms for indexing into C string arrays and/or converting them to Ada string arrays.

It essentially exists because the standard Interfaces.C.Strings package can't handle non null-terminated C strings very well. The package also uses the type system to guarantee that strings will be terminated (or guarantee that they won't).

License

Public Domain

Personal tools