Imported Upstream version 4.6.0
[debian/atlc] / src / non_gui / usage_create_bmp_for_circ_in_circ.c
1 /* atlc - arbitrary transmission line calculator, for the analysis of
2 transmission lines are directional couplers. 
3
4 Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
5
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either package_version 2
9 of the License, or (at your option) any later package_version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
19 USA.
20
21 Dr. David Kirkby, e-mail drkirkby at ntlworld.com 
22
23 */
24 #include "config.h"
25
26 #ifdef HAVE_STDLIB_H
27 #include <stdlib.h>    
28 #endif
29
30 #include "definitions.h"
31 #include "exit_codes.h"
32
33 void usage_create_bmp_for_circ_in_circ(void)
34 {
35       fprintf(stderr,"Usage: circ_in_circ [-b bmp_size] [-f outfile] [-v] D d O Er filename\n\n");
36       fprintf(stderr,"Version %s\n", PACKAGE_VERSION);
37       fprintf(stderr,"Where \n");
38       fprintf(stderr,"  D  is the internal diameter of the outer conductor \n");
39       fprintf(stderr,"  d  is the outside diameter of the inner conductor\n");
40       fprintf(stderr,"  O  is the offset between centres (zero in the case of coax cable)\n");
41       fprintf(stderr,"  Er is the relative permettivity of the dielectric.\n");
42       fprintf(stderr,"  D, d and O are either all in mm or all in inches (but not a mixture!!)\n\n");   
43       fprintf(stderr,"options are:\n");
44       fprintf(stderr,"  -C         \n     Print copyright, licencing and distribution information\n");
45       fprintf(stderr,"  -b bmp_size\n     Sets the size of the bitmap, in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE);
46       fprintf(stderr,"  -v         \n     Write diagnostic information to stderr\n\n");
47
48       fprintf(stderr,"                              *****************\n"); 
49       fprintf(stderr,"                          ****                 ****\n");                        
50       fprintf(stderr,"                       ****    <-----d------>     ****\n");                     
51       fprintf(stderr,"                     ***            *****            ***\n");                   
52       fprintf(stderr,"                   ***           ***********           ***\n");                 
53       fprintf(stderr,"                 ***            *************            ***\n");               
54       fprintf(stderr,"                ***            ***************            ***\n");              
55       fprintf(stderr,"               ***      ^      ***************             ***\n");             
56       fprintf(stderr,"              ***       |      ***************              ***\n");            
57       fprintf(stderr,"             ***        |       *************                ***\n");           
58       fprintf(stderr,"             **         O        ***********                  **\n");           
59       fprintf(stderr,"            ***         |            ***                      ***\n");          
60       fprintf(stderr,"            **          |                                      **\n");          
61       fprintf(stderr,"            *<------------------------D------------------------>*\n");          
62       fprintf(stderr,"            **                                                 **\n");          
63       fprintf(stderr,"            **                                                 **\n");          
64       fprintf(stderr,"            **                                                 **\n");          
65       fprintf(stderr,"            ***                                               ***\n");          
66       fprintf(stderr,"             **                                               **\n");           
67       fprintf(stderr,"             ***                                             ***\n");           
68       fprintf(stderr,"              **                                             **\n");            
69       fprintf(stderr,"               **                                           **\n");             
70       fprintf(stderr,"                **                                         **\n");              
71       fprintf(stderr,"                 ***                                     ***\n");               
72       fprintf(stderr,"                  ****                                 ****\n");                
73       fprintf(stderr,"                    ****                             ****\n");                  
74       fprintf(stderr,"                      *****                       *****\n");                    
75       fprintf(stderr,"                         ******               ******\n");                       
76       fprintf(stderr,"                             *******************\n");                           
77       fprintf(stderr,"                                     ***\n\n");
78       exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
79 }