examples: tidy-up headers and includes

To have a more similar layout across examples.

Closes #19580
This commit is contained in:
Viktor Szakats 2025-11-17 23:48:39 +01:00
parent 0a2618b265
commit 3c7cf8eac3
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
96 changed files with 116 additions and 121 deletions

View file

@ -20,25 +20,27 @@
*
* SPDX-License-Identifier: curl
*
* To compile:
* gcc crawler.c $(pkg-config --cflags --libs libxml-2.0 libcurl)
*
*/
***************************************************************************/
/* <DESC>
* Web crawler based on curl and libxml2 to stress-test curl with
* hundreds of concurrent connections to various servers.
* </DESC>
*/
/*
* To compile:
* gcc crawler.c $(pkg-config --cflags --libs libxml-2.0 libcurl)
*/
#include <libxml/HTMLparser.h>
#include <libxml/xpath.h>
#include <libxml/uri.h>
#include <curl/curl.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <signal.h>
#include <curl/curl.h>
/* Parameters */
static int max_con = 200;
static int max_total = 20000;