X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=include%2Fcmem.h;h=2411980260f8bee8a1b8465830f7e612e6c75788;hb=HEAD;hp=e8b0abaa7be5a9f150f35c81d206f92e58a13f53;hpb=a7982d41c9809fdddbc5bac27c9d08b8a9d05012;p=YACASL2.git diff --git a/include/cmem.h b/include/cmem.h index e8b0aba..2411980 100644 --- a/include/cmem.h +++ b/include/cmem.h @@ -70,19 +70,28 @@ char *strndup_chk(const char *s, size_t len, const char *tag); /** * @brief 文字列の末尾から、改行と空白とタブを削除する * - * @return 末尾から改行と空白とタブを削除した文字列 + * @return なし * * @param s 文字列 */ -char *strip_end(char *s); +void strip_end(char *s); /** * @brief 文字列から「'」以降の文字列をCASL IIのコメントとして削除する。「''」の場合は除く * - * @return コメントを削除した文字列 + * @return なし + * + * @param s 文字列 + */ +void strip_casl2_comment(char *s); + +/** + * @brief 逆にした文字列を返す + * + * @return 逆にしたした文字列 * * @param s 文字列 */ -char *strip_casl2_comment(char *s); +char *strrev(const char *s); #endif