Win32 上的 Fortune

为了要在 [Sylpheed] 中增加随机签名档,需要用 [url=http://en.wikipedia.org/wiki/Fortune (program)][Fortune][/url] 在 MinGW 下跑。首先找到一个 [fortune-mod],但是它编译需要很多东西,有 GNU Regex、recode 等,而且也不支持 MinGW。另外一个[实现]看起来很小,但是没有找到可用的下载链接。所以打算自己实现一个,至少说初步看起来不是很难,争取能做到兼容现有的文件格式,当然首先得要在 MinGW 下运行,输出作为 Sylpheed 的签名档。

一个需要注意的地方是,所有的 fortune cookies 都会有一个索引文件,遵循 [strfile] 格式,这一部分已经从 fortune-mod 中拿出来,稍微修改了一点,已经编译通过,不过还是打算自己实现。

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • You can use BBCode tags in the text.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
        _           ____            _____   _      _____ 
____ | | __ _ | _ \ __ _ |___ / | | __ | ____|
|_ / | | / _` | | |_) | / _` | |_ \ | |/ / | _|
/ / | | | (_| | | __/ | (_| | ___) | | < | |___
/___| |_| \__, | |_| \__,_| |____/ |_|\_\ |_____|
|___/
Enter the code depicted in ASCII art style.