Github User Fetcher 1.0.0
C Application with Server and GUI
|
Entry point for the application. Parses command-line arguments and either starts the HTTP server or fetches and displays a GitHub user. More...
Go to the source code of this file.
Functions | |
int | main (int argc, char **argv) |
Main function that initializes and runs the application. | |
Entry point for the application. Parses command-line arguments and either starts the HTTP server or fetches and displays a GitHub user.
Definition in file src/main.c.
int main | ( | int | argc, |
char ** | argv ) |
Main function that initializes and runs the application.
Supported command-line arguments:
--user <username>
: Specify the GitHub username to fetch.--user=<username>
: Alternative way to specify the GitHub username.--server
: Run the HTTP server instead of fetching a user.--port=<port>
: Specify the port for the HTTP server (default: 1234).argc | Argument count. |
argv | Argument vector. |
Definition at line 27 of file src/main.c.
References fetch_github_user(), NULL, print_github_user(), and start_http_server().