summaryrefslogtreecommitdiff
path: root/src/odutils/contrast.c
blob: 115bcb0c65bac1da07c0dc098908eca8d3156030 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 <stdio.h>
#include <stdlib.h>

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;
}
Back to https://optics-design.com