mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 08:18:30 +00:00
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:
parent
dd04aeba1c
commit
f6b3019796
8 changed files with 96 additions and 4 deletions
10
tool/curl/cmd.h
Normal file
10
tool/curl/cmd.h
Normal 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_ */
|
Loading…
Add table
Add a link
Reference in a new issue