我在一段C代码中使用ssize_t
。我不知道它声明了哪个头文件。所以我开始谷歌搜索,然后被埋葬,失去了许多无关的东西。
这种情况一次又一次地发生在我身上,浪费了很多时间。那么,有没有一个传统的,可能有效的解决方案,你专业的C编码器找到正确的头文件,或者你只记得它们?谢谢。
答案 0 :(得分:2)
类型不需要相应的C文件,因此有点困难。
如果您知道使用类型的函数,您通常可以阅读它的手册页,并查看需要哪些标题。例如,您可能知道ssize_t
返回了read(2)
,然后是the friendly manual page:说:
#include <unistd.h> ssize_t read(int fd, void *buf, size_t count);
除了函数之外,<unistd.h>
包括ssize_t
必须提供 1. Setting up the webhook [Shopify -> Notifications -> webhooks].
2. The php file that processes the webhook.
1. -> Create Webhook in shopify and point to where you php url [example.com/Process-webhook.php]
2. -> Process-webhook.php
的定义。
另一种方法是grep:系统包含目录,这是蛮力但通常很有用。