summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradmin <contact@optics-design.com>2025-04-28 23:45:22 +0200
committeradmin <contact@optics-design.com>2025-04-28 23:45:22 +0200
commit6b273514721ba2e09caa86780134d70fd6e56143 (patch)
tree1d42553f7bd893addbacda636b5ac064d6d33d66
parent0a64ff62830495ea21bdafe33b6166c3955d35fd (diff)
Added a disclaimer in README.md and the program help.
-rw-r--r--README.md7
-rw-r--r--src/tolsac.c6
-rw-r--r--structure.txt1
3 files changed, 13 insertions, 1 deletions
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
Back to https://optics-design.com