/[dtapublic]/projs/trunk/shared_source/c_datd/fcmiof.h
ViewVC logotype

Diff of /projs/trunk/shared_source/c_datd/fcmiof.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 70 by dashley, Sat Oct 29 01:53:01 2016 UTC revision 71 by dashley, Sat Nov 5 11:07:06 2016 UTC
# Line 1  Line 1 
1  //$Header$  //$Header$
2  //-------------------------------------------------------------------------------------------------  //-------------------------------------------------------------------------------------------------
3  //This file is part of "David T. Ashley's Shared Source Code", a set of shared components  //This file is part of "David T. Ashley's Shared Source Code", a set of shared components
4  //integrated into many of David T. Ashley's projects.  //integrated into many of David T. Ashley's projects.
5  //-------------------------------------------------------------------------------------------------  //-------------------------------------------------------------------------------------------------
6  //This source code and any program in which it is compiled/used is provided under the MIT License,  //This source code and any program in which it is compiled/used is provided under the MIT License,
7  //reproduced below.  //reproduced below.
8  //-------------------------------------------------------------------------------------------------  //-------------------------------------------------------------------------------------------------
9  //Permission is hereby granted, free of charge, to any person obtaining a copy of  //Permission is hereby granted, free of charge, to any person obtaining a copy of
10  //this software and associated documentation files(the "Software"), to deal in the  //this software and associated documentation files(the "Software"), to deal in the
11  //Software without restriction, including without limitation the rights to use,  //Software without restriction, including without limitation the rights to use,
12  //copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the  //copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the
13  //Software, and to permit persons to whom the Software is furnished to do so,  //Software, and to permit persons to whom the Software is furnished to do so,
14  //subject to the following conditions :  //subject to the following conditions :
15  //  //
16  //The above copyright notice and this permission notice shall be included in all  //The above copyright notice and this permission notice shall be included in all
17  //copies or substantial portions of the Software.  //copies or substantial portions of the Software.
18  //  //
19  //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR  //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20  //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,  //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21  //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE  //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
22  //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER  //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23  //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,  //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24  //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE  //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25  //SOFTWARE.  //SOFTWARE.
26  //-------------------------------------------------------------------------------------------------  //-------------------------------------------------------------------------------------------------
27  #ifndef FCMIOF_H_INCLUDED  #ifndef FCMIOF_H_INCLUDED
28     #define FCMIOF_H_INCLUDED     #define FCMIOF_H_INCLUDED
29    
30     #ifdef MODULE_FCMIOF     #ifdef MODULE_FCMIOF
31        #define DECMOD_FCMIOF        #define DECMOD_FCMIOF
32     #else     #else
33        #define DECMOD_FCMIOF extern        #define DECMOD_FCMIOF extern
34     #endif     #endif
35    
36    
37     //Returns the assumed line length for formatted output.     //Returns the assumed line length for formatted output.
38     DECMOD_FCMIOF FCMIOF_get_line_len(void);     DECMOD_FCMIOF FCMIOF_get_line_len(void);
39    
40    
41     /****************************************************************************/     /****************************************************************************/
42     /* FCMIOF_repchar():                                                        */     /* FCMIOF_repchar():                                                        */
43     /*--------------------------------------------------------------------------*/     /*--------------------------------------------------------------------------*/
44     /* DESCRIPTION                                                              */     /* DESCRIPTION                                                              */
45     /*   Repeats a character to stdout the specified number of times.           */     /*   Repeats a character to stdout the specified number of times.           */
46     /*                                                                          */     /*                                                                          */
47     /* INPUTS                                                                   */     /* INPUTS                                                                   */
48     /*   c  :  The character to repeat.                                         */     /*   c  :  The character to repeat.                                         */
49     /*                                                                          */     /*                                                                          */
50     /*   n  :  The number of times to repeat it.                                */     /*   n  :  The number of times to repeat it.                                */
51     /****************************************************************************/     /****************************************************************************/
52     DECMOD_FCMIOF void FCMIOF_repchar(char c, unsigned n);     DECMOD_FCMIOF void FCMIOF_repchar(char c, unsigned n);
53    
54     //Repeats characters to a stream.     //Repeats characters to a stream.
55     DECMOD_FCMIOF void FCMIOF_stream_repchar(FILE *s, char c, unsigned n);     DECMOD_FCMIOF void FCMIOF_stream_repchar(FILE *s, char c, unsigned n);
56    
57     /****************************************************************************/     /****************************************************************************/
58     /* FCMIOF_hline():                                                          */     /* FCMIOF_hline():                                                          */
59     /*--------------------------------------------------------------------------*/     /*--------------------------------------------------------------------------*/
60     /* DESCRIPTION                                                              */     /* DESCRIPTION                                                              */
61     /*   Dumps a horizontal line of the standard length to the standard output. */     /*   Dumps a horizontal line of the standard length to the standard output. */
62     /****************************************************************************/     /****************************************************************************/
63     DECMOD_FCMIOF void FCMIOF_hline(void);     DECMOD_FCMIOF void FCMIOF_hline(void);
64    
65     //Dumps horizontal line to stream.     //Dumps horizontal line to stream.
66     DECMOD_FCMIOF void FCMIOF_stream_hline(FILE *s);     DECMOD_FCMIOF void FCMIOF_stream_hline(FILE *s);
67    
68    
69     DECMOD_FCMIOF void FCMIOF_stream_bannerheading(FILE *f,     DECMOD_FCMIOF void FCMIOF_stream_bannerheading(FILE *f,
70                                   char *s,                                   char *s,
71                                   int n_extra_lines);                                   int n_extra_lines);
72    
73     /****************************************************************************/     /****************************************************************************/
74     /* FCMIOF_bannerheading():                                                  */     /* FCMIOF_bannerheading():                                                  */
75     /*--------------------------------------------------------------------------*/     /*--------------------------------------------------------------------------*/
76     /* DESCRIPTION                                                              */     /* DESCRIPTION                                                              */
77     /*   Prints a banner heading bracketed by astreisks to the standard output. */     /*   Prints a banner heading bracketed by astreisks to the standard output. */
78     /*   This function is useful for separating different sections of output.   */     /*   This function is useful for separating different sections of output.   */
79     /****************************************************************************/     /****************************************************************************/
80     DECMOD_FCMIOF void FCMIOF_bannerheading(char *s, int n_extra_lines);     DECMOD_FCMIOF void FCMIOF_bannerheading(char *s, int n_extra_lines);
81    
82    
83     DECMOD_FCMIOF void FCMIOF_time_stream(FILE *s, time_t ltime);     DECMOD_FCMIOF void FCMIOF_time_stream(FILE *s, time_t ltime);
84    
85    
86     /* Two functions below return version control information for .C and     /* Two functions below return version control information for .C and
87     ** .H files.     ** .H files.
88     */     */
89     DECMOD_FCMIOF const char *FCMIOF_cvcinfo(void);     DECMOD_FCMIOF const char *FCMIOF_cvcinfo(void);
90     DECMOD_FCMIOF const char *FCMIOF_hvcinfo(void);     DECMOD_FCMIOF const char *FCMIOF_hvcinfo(void);
91     #define FCMIOF_H_VERSION ("$Header$")     #define FCMIOF_H_VERSION ("$Header$")
92    
93  #endif  #endif
94    
95  //End of fcmiof.h.  //End of fcmiof.h.

Legend:
Removed from v.70  
changed lines
  Added in v.71

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25