2024年1月12日

C语言陷阱之 #if 不存在的宏

摘要: . . . . . 今天在使用 __BYTE_ORDER 宏判断字节序的时候,使用了如下的代码: #include <stdio.h> #include <stdint.h> typedef struct relay_frame_st { #if __BYTE_ORDER == __BIG_ENDI 阅读全文

posted @ 2024-01-12 18:00 0xCAFEBABE 阅读(29) 评论(0) 推荐(0) 编辑

scp 出现 subsystem request failed on channel 0 scp: Connection closed 的解决方法

摘要: . . . . . 先说结论,给 scp 命令添加一个 -O (大写字母O,不是数字0)参数就可以了。 开启故事模式 最近在使用 Gerrit 下载代码的时候,发现出现这样的错误: >$ git clone "ssh://user@10.10.10.13:29418/project/manifest 阅读全文

posted @ 2024-01-12 10:43 0xCAFEBABE 阅读(625) 评论(0) 推荐(0) 编辑

导航