From 4b3b08ecadf8604062c7f801668e641cb024e309 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 25 Apr 2025 21:17:07 +0200 Subject: First Commit --- src/odutils/contrast.c | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/odutils/contrast.c (limited to 'src/odutils/contrast.c') diff --git a/src/odutils/contrast.c b/src/odutils/contrast.c new file mode 100644 index 0000000..115bcb0 --- /dev/null +++ b/src/odutils/contrast.c @@ -0,0 +1,43 @@ +/** + * contrast.c - source file for just testing basic contrast stuff. + * + * Copyright (C) 2025 https://optics-design.com + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * See the COPYING file for the full license text. + */ +#include +#include + +int main(int argc, char* argv[]){ + int number=1; + char ch; +while (--argc>0) { + if ((*++argv)[0] =='-') { + + +while ((ch = *++argv[0])) { + switch (ch) { + case 'm': + number=1; + break; + case 'w': + number = 2; + break; + default: + printf("lmao\n"); + break; + + + } + +} + } +} + printf("this is %d",number); + return 0; +} -- cgit v1.2.3