Skip to content

Commit

Permalink
init & cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Nov 11, 2024
1 parent f27fa09 commit 84ed0a2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ jobs:
# gcc -o example example.c "libcurl/bin/libcurl-x64.dll" -Ilibcurl/include
# - run: gcc -o example example.c "libcurl/bin/libcurl-x64.dll" -Ilibcurl/include
- run: gcc -o hw2 hw.c "libcurl/bin/libcurl-x64.dll" -Ilibcurl/include && ./hw2.exe
- run: ls
- run: ./example.exe
- run: gcc -o get get.c "libcurl/bin/libcurl-x64.dll" -Ilibcurl/include && ./get.exe
# - run: ls
# - run: ./example.exe
11 changes: 11 additions & 0 deletions get.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include <curl/curl.h>
#include <stdio.h>

int main(int argc, char *argv[]) {
CURLcode ret;
CURL *hnd;
hnd = curl_easy_init();
curl_easy_cleanup(hnd);
hnd = NULL;
return 0;
}

0 comments on commit 84ed0a2

Please # to comment.