[Senna-dev 874] Re: sen_rc_to_string()

Back to archive index

Kouhei Sutou kou****@cozmi*****
2008年 5月 27日 (火) 11:04:19 JST


2008/05/27 11:02 Kouhei Sutou <kou****@cozmi*****>:

> SennaのAPIでは関数の実行結果の成否をsen_rcで返しますが、sen_rcを
> 文字列に変換する関数があるとエラーメッセージを表示するときに便利
> だと思います。errnoとstrerror()みたいな感じです。
>
> sen_rc rc;
> rc = sen_index_open(...);
> if (rc) {
>  printf("failed to open index: %s\n", sen_rc_to_string(rc));
>  exit(-1);
> }

sen_index_open()はsen_rcを返さなかった。。。




Senna-dev メーリングリストの案内
Back to archive index