/* cmdline.h by Yoshioka Tsuneo(QWF00133@niftyserve.or.jp) welcome any e-mail!! You can use this file as Public Domain Software. Copy,Edit,Re-distibute and for any purpose,you can use this file. */ #ifndef ___CMDLINE_H #define ___CMDLINE_H /* ptr の配列の長さを求める(NULLポインタが終端) */ int ptrarraylen(void **ptr); /* 文字列の配列をまるごとコピー(複製)する */ /* 一列にまとめることで一回freeを呼ぶだけで配列まるごと開放できる*/ char **strarraydup(char **ptrptr); /* コマンドライン引数を分割する (レスポンスファイルは利用しない。)*/ char ** split_cmdline(char *cmdline); /*ファイルを読み込んで文字列に入れる*/ char *loadfile(char *fname); /* reallocを呼んで返り値を*ptrに入れる (NULLの場合は入れない)*/ void *realloc2(void **ptr,int size); /* コマンドラインを展開 */ /* @ではじまるレスポンスファイルがあればそれも展開する。*/ char **split_cmdline_with_response(char *cmdline); #endif /* CMDLINE_H */