@comment $OpenXM: OpenXM/src/asir-doc/int-parts/datatype/string.texi,v 1.1 2001/04/23 05:45:37 noro Exp $ @section 文字列 @example struct oSTRING @{ 文字列 short id; 識別子 (= O_STR) short pad; char *body; 0 終端 C 文字列へのポインタ @} *VECT; @end example @noindent C の 0 終端文字列の wrapper である. 加算 (文字列の接続), 比較演算のみが 用意されている. @subsection 文字列の生成 @example #include "ca.h" MKSTR(m,b) (macro; STRING m; char *b) 0 終端 C の文字列 b を Risa 文字列 object m に変換する. @end example @subsection 四則 @example #include "ca.h" void addstr(VL vl,STRING a, STRING b, STRING *rp) *rp = a->body と b->body を繋げた文字列 int compstr(VL vl,STRING a,STRING b) 標準ライブラリ関数 strcmp() による比較結果を返す. @end example