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

5
tool/curl/cmd.c Normal file
View file

@ -0,0 +1,5 @@
#include "tool/curl/cmd.h"
int main(int argc, char *argv[]) {
return _curl(argc, argv);
}