From 6b273514721ba2e09caa86780134d70fd6e56143 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 28 Apr 2025 23:45:22 +0200 Subject: Added a disclaimer in README.md and the program help. --- README.md | 7 +++++++ src/tolsac.c | 6 +++++- structure.txt | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 56790bc..dba7c39 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,13 @@ Sometimes I need small programs for dealing with tolerances in optical systems. ## Features - Generate random tolerancing samples with various sampling methods and probability distributions. +## Disclaimer +**USE AT YOUR OWN RISK**: The information provided by this program is for general informational purposes only. All information is provided in good faith, however I make no representation or warranty of any kind, express or implied, regarding the accuracy, adequacy, validity, reliability, availability, or completeness of the displayed optical data. + +I am not responsible for any errors or omissions, or for the results obtained from the use of this information. All information is provided "as is", with no guarantee of completeness, accuracy, timeliness or of the results obtained from the use of this information. Users should independently verify any optical data before making decisions based on it. + +In no event will I be liable for any loss or damage including without limitation, indirect or consequential loss or damage, or any loss or damage whatsoever arising from loss of data or profits arising out of, or in connection with, the use of this software. + ## License This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as diff --git a/src/tolsac.c b/src/tolsac.c index 4a3a0bc..ee89921 100644 --- a/src/tolsac.c +++ b/src/tolsac.c @@ -186,7 +186,11 @@ static inline f64 generate_sample(byte pdf_type, f64 u, f64 min, f64 max, f64 me // Function to display help information void display_help(void) { - printf("Description:\n" + printf("DISCLAIMER:\n" + "**USE AT YOUR OWN RISK**: The information provided by this program is for general informational purposes only. All information is provided in good faith, however I make no representation or warranty of any kind, express or implied, regarding the accuracy, adequacy, validity, reliability, availability, or completeness of the displayed optical data.\n" + "I am not responsible for any errors or omissions, or for the results obtained from the use of this information. All information is provided as is, with no guarantee of completeness, accuracy, timeliness or of the results obtained from the use of this information. Users should independently verify any optical data before making decisions based on it.\n" + "In no event will I be liable for any loss or damage including without limitation, indirect or consequential loss or damage, or any loss or damage whatsoever arising from loss of data or profits arising out of, or in connection with, the use of this software.\n\n" + "Description:\n" "The program generates random values for parameters based on the " "given range and the probability distribution. " "It is expected that the output is used in another program " diff --git a/structure.txt b/structure.txt index 3b7407e..9c45793 100644 --- a/structure.txt +++ b/structure.txt @@ -11,6 +11,7 @@ tolsac +---bin | tolsac.exe | ++---data +---include | toldef.h | tolmacdef.h -- cgit v1.2.3