From: Kevin Day Date: Tue, 13 Dec 2022 02:07:41 +0000 (-0600) Subject: Update: Add main.h to every program. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=1d9746122a0cd4b58512cd53f10d85c2e84368f7;p=fll Update: Add main.h to every program. This should not be installed as it is for the program and not the library. This just provides documentation for most cases. --- diff --git a/level_3/byte_dump/c/main.h b/level_3/byte_dump/c/main.h new file mode 100644 index 0000000..e0d4b38 --- /dev/null +++ b/level_3/byte_dump/c/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: Byte Dump + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "byte_dump" program functionality in some manner. + */ +#ifndef _byte_dump_main_h +#define _byte_dump_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _byte_dump_main_h diff --git a/level_3/control/c/main.h b/level_3/control/c/main.h new file mode 100644 index 0000000..4b39fe2 --- /dev/null +++ b/level_3/control/c/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: Control + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "control" program functionality in some manner. + */ +#ifndef _control_main_h +#define _control_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _control_main_h diff --git a/level_3/controller/c/main.h b/level_3/controller/c/main.h new file mode 100644 index 0000000..d9f2028 --- /dev/null +++ b/level_3/controller/c/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: Controller + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "controller" program functionality in some manner. + */ +#ifndef _controller_main_h +#define _controller_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _controller_main_h diff --git a/level_3/fake/c/main.h b/level_3/fake/c/main.h new file mode 100644 index 0000000..c7efec8 --- /dev/null +++ b/level_3/fake/c/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: Featureless Make + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "fake" program functionality in some manner. + */ +#ifndef _fake_main_h +#define _fake_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _fake_main_h diff --git a/level_3/firewall/c/main.h b/level_3/firewall/c/main.h new file mode 100644 index 0000000..33c6a56 --- /dev/null +++ b/level_3/firewall/c/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: FSS Write + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "firewall" program functionality in some manner. + */ +#ifndef _firewall_main_h +#define _firewall_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _firewall_main_h diff --git a/level_3/fss_basic_list_read/c/main.h b/level_3/fss_basic_list_read/c/main.h new file mode 100644 index 0000000..060e536 --- /dev/null +++ b/level_3/fss_basic_list_read/c/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: FSS Basic List Read + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "fss_basic_list_read" program functionality in some manner. + */ +#ifndef _fss_basic_list_read_main_h +#define _fss_basic_list_read_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _fss_basic_list_read_main_h diff --git a/level_3/fss_basic_read/c/main.h b/level_3/fss_basic_read/c/main.h new file mode 100644 index 0000000..55d83f4 --- /dev/null +++ b/level_3/fss_basic_read/c/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: FSS Basic Read + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "fss_basic_read" program functionality in some manner. + */ +#ifndef _fss_basic_read_main_h +#define _fss_basic_read_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _fss_basic_read_main_h diff --git a/level_3/fss_embedded_list_read/c/main.h b/level_3/fss_embedded_list_read/c/main.h new file mode 100644 index 0000000..28543db --- /dev/null +++ b/level_3/fss_embedded_list_read/c/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: FSS Embedded List + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "fss_embedded_list_read" program functionality in some manner. + */ +#ifndef _fss_embedded_list_read_main_h +#define _fss_embedded_list_read_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _fss_embedded_list_read_main_h diff --git a/level_3/fss_extended_list_read/c/main.h b/level_3/fss_extended_list_read/c/main.h new file mode 100644 index 0000000..620a5b7 --- /dev/null +++ b/level_3/fss_extended_list_read/c/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: FSS Extended List + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "fss_extended_list_read" program functionality in some manner. + */ +#ifndef _fss_extended_list_read_main_h +#define _fss_extended_list_read_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _fss_extended_list_read_main_h diff --git a/level_3/fss_extended_read/c/main.h b/level_3/fss_extended_read/c/main.h new file mode 100644 index 0000000..dafde16 --- /dev/null +++ b/level_3/fss_extended_read/c/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: FSS Extended Read + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "fss_extended_read" program functionality in some manner. + */ +#ifndef _fss_extended_read_main_h +#define _fss_extended_read_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _fss_extended_read_main_h diff --git a/level_3/fss_identify/c/main.h b/level_3/fss_identify/c/main.h new file mode 100644 index 0000000..adb54d9 --- /dev/null +++ b/level_3/fss_identify/c/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: FSS Identify + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "fss_identify" program functionality in some manner. + */ +#ifndef _fss_identify_main_h +#define _fss_identify_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _fss_identify_main_h diff --git a/level_3/fss_payload_read/c/main.h b/level_3/fss_payload_read/c/main.h new file mode 100644 index 0000000..9d5f9aa --- /dev/null +++ b/level_3/fss_payload_read/c/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: FSS Payload Read + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "fss_payload_read" program functionality in some manner. + */ +#ifndef _fss_payload_read_main_h +#define _fss_payload_read_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _fss_payload_read_main_h diff --git a/level_3/fss_write/c/basic/main.h b/level_3/fss_write/c/basic/main.h new file mode 100644 index 0000000..69cdc6b --- /dev/null +++ b/level_3/fss_write/c/basic/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: FSS Write + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "fss_basic_write" program functionality in some manner. + */ +#ifndef _fss_write_basic_main_h +#define _fss_write_basic_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _fss_write_basic_main_h diff --git a/level_3/fss_write/c/basic_list/main.h b/level_3/fss_write/c/basic_list/main.h new file mode 100644 index 0000000..3f736d7 --- /dev/null +++ b/level_3/fss_write/c/basic_list/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: FSS Write + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "fss_basic_list_write" program functionality in some manner. + */ +#ifndef _fss_write_basic_list_main_h +#define _fss_write_basic_list_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _fss_write_basic_list_main_h diff --git a/level_3/fss_write/c/embedded_list/main.h b/level_3/fss_write/c/embedded_list/main.h new file mode 100644 index 0000000..38d3099 --- /dev/null +++ b/level_3/fss_write/c/embedded_list/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: FSS Write + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "fss_embedded_list_write" program functionality in some manner. + */ +#ifndef _fss_write_embedded_list_main_h +#define _fss_write_embedded_list_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _fss_write_embedded_list_main_h diff --git a/level_3/fss_write/c/extended/main.h b/level_3/fss_write/c/extended/main.h new file mode 100644 index 0000000..abb2ec3 --- /dev/null +++ b/level_3/fss_write/c/extended/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: FSS Write + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "fss_extended_write" program functionality in some manner. + */ +#ifndef _fss_write_extended_main_h +#define _fss_write_extended_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _fss_write_extended_main_h diff --git a/level_3/fss_write/c/extended_list/main.h b/level_3/fss_write/c/extended_list/main.h new file mode 100644 index 0000000..bab5ce4 --- /dev/null +++ b/level_3/fss_write/c/extended_list/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: FSS Write + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "fss_extended_list_write" program functionality in some manner. + */ +#ifndef _fss_write_extended_list_main_h +#define _fss_write_extended_list_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _fss_write_extended_list_main_h diff --git a/level_3/fss_write/c/main/main.h b/level_3/fss_write/c/main/main.h index 1de0ad0..a571262 100644 --- a/level_3/fss_write/c/main/main.h +++ b/level_3/fss_write/c/main/main.h @@ -16,6 +16,22 @@ extern "C" { #endif /** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +/** * Process printing help for when not specifying "--as". * * @param main diff --git a/level_3/fss_write/c/payload/main.h b/level_3/fss_write/c/payload/main.h new file mode 100644 index 0000000..8033963 --- /dev/null +++ b/level_3/fss_write/c/payload/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: FSS Write + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "fss_payload_write" program functionality in some manner. + */ +#ifndef _fss_write_payload_main_h +#define _fss_write_payload_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _fss_write_payload_main_h diff --git a/level_3/iki_read/c/main/main.h b/level_3/iki_read/c/main/main.h new file mode 100644 index 0000000..f1c36f7 --- /dev/null +++ b/level_3/iki_read/c/main/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: IKI Read + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "iki_read" program functionality in some manner. + */ +#ifndef _iki_read_main_h +#define _iki_read_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _iki_read_main_h diff --git a/level_3/iki_write/c/main/main.h b/level_3/iki_write/c/main/main.h new file mode 100644 index 0000000..15e6e38 --- /dev/null +++ b/level_3/iki_write/c/main/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: IKI Write + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "iki_write" program functionality in some manner. + */ +#ifndef _iki_write_main_h +#define _iki_write_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _iki_write_main_h diff --git a/level_3/status_code/c/fss/main.h b/level_3/status_code/c/fss/main.h new file mode 100644 index 0000000..8e024cc --- /dev/null +++ b/level_3/status_code/c/fss/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: Status Code + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "fss_status_code" program functionality in some manner. + */ +#ifndef _status_code_fss_main_h +#define _status_code_fss_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _status_code_fss_main_h diff --git a/level_3/status_code/c/main/main.h b/level_3/status_code/c/main/main.h new file mode 100644 index 0000000..99a3d65 --- /dev/null +++ b/level_3/status_code/c/main/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: Status Code + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "status_code" program functionality in some manner. + */ +#ifndef _status_code_main_h +#define _status_code_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _status_code_main_h diff --git a/level_3/utf8/c/main/main.h b/level_3/utf8/c/main/main.h new file mode 100644 index 0000000..f6537e0 --- /dev/null +++ b/level_3/utf8/c/main/main.h @@ -0,0 +1,38 @@ +/** + * FLL - Level 3 + * + * Project: UTF-8 + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * This file is only ever included by main/main.c and should not normally be included anywhere else. + * Anything that wants to include this should be providing the "utf8" program functionality in some manner. + */ +#ifndef _utf8_main_h +#define _utf8_main_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Standard program entry point. + * + * @param argc + * The number of arguments. + * @param argv + * The array of arguments. + * @param envp + * The array of all environment variables on program start. + * + * @return + * 0 on success. + * 1 on error. + */ +extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _utf8_main_h