Make curl example into a complete tool (#706)

You can now handily use `curl` with popen()/system() by
placing `STATIC_YOINK("_curl")` in your main source file.
This commit is contained in:
Ronsor 2022-12-21 16:12:02 -08:00 committed by GitHub
parent dd04aeba1c
commit f6b3019796
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 96 additions and 4 deletions

10
tool/curl/cmd.h Normal file
View file

@ -0,0 +1,10 @@
#ifndef COSMOPOLITAN_TOOL_CURL_CMD_H_
#define COSMOPOLITAN_TOOL_CURL_CMD_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
int _curl(int, char *[]);
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_TOOL_CURL_CMD_H_ */