TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ten Rules for Writing Cross Platform 'C' Code (2008)

3 点作者 nazri1将近 7 年前

1 comment

peapicker将近 7 年前
Rule 4 regarding unsigned long is a horrible example as Windows keeps them as 32 bits on 32&#x2F;64 bit compiles while UNIXes vary between 32 and 64 bits depending on compile mode making unsigned long a disaster of portability across platforms and bitnesses.<p>Stopped reading at that point as this article doesn’t deal with EBCDIC platform portability either... so overlooks the entire IBM main and minicomputer&#x2F;OS400 market as well. And I say this as one who writes code on all of the above that does Unicode internally but one still has to interface with the OS.<p>Anyway. There is a LOT more to portability than what is written here.
评论 #17556184 未加载