Neur2n
V2EX  ›  C

轮子更新: C/C++ 跨平台小工具库

  •  
  •   Neur2n · May 31, 2024 · 4548 views
    This topic created in 710 days ago, the information mentioned may be changed or developed.

    忘记上链接了:https://github.com/neur1n/x.h

    一万年前写了个C 语言跨平台小工具库,提到一开始是用 C++写的,后来改成了 C99 。结果现在又搞了一个 C++版本( C 版本还保留且两个版本同步)。代码更新了不少,也重新组织了,文档从 README 改成了 doxygen (但是不知道要怎么导入 github wiki )。主要功能有:

      • Feature Configuration
      • Architecture Detection
      • Compiler Detection
      • Operating System Detection
      • Platform Detection
    • Communication:目前仅有 socket
    • Console IO:虚拟按键相关
    • Date and Time:计时,时间戳等
    • Error Handling:兼容多种错误码系统的一个错误码系统
    • File System:文件绝对路径,文件大小等
    • Hardware:CPU 、GPU 相关(目前功能非常少)
    • Mathematics:这个其实比较杂,算数相关的都放进去了
    • Memory Management:稍微封装且带错误提示的 malloc 、free 、memcpy 等
    • Standard IO:目前只有日志打印
    • String:字符串复制、是否为空等

    其实是一个很个人的工具库,平时工作用到什么就加什么进去。近期在玩 cuda ,所以也加了点 cuda 的东西。

    2 replies    2024-05-31 14:28:44 +08:00
    xuld
        1
    xuld  
       May 31, 2024
    楼主怎么联系?想认识一下,我的邮箱是 xuld#xuld.net
    Neur2n
        2
    Neur2n  
    OP
       May 31, 2024
    @xuld 麻烦移步我的 Github 个人主页,头像下面有的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5453 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 01:19 · PVG 09:19 · LAX 18:19 · JFK 21:19
    ♥ Do have faith in what you're doing.