"Fossies" - the Fresh Open Source Software Archive

Member "erltools/pub/cplusplu/test/concert.c_l" (25 Jul 1999, 2204 Bytes) of package /linux/misc/old/erltools-4.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 /*************************************************************************************************
    2                                                                                                   
    3                                   Comment Describing the whole program                            
    4                                                                                                   
    5   *************************************************************************************************/
    6 typedef int type_def;
    7 
    8 /*************************************************************************************************
    9                                    Comment explaining the function                                
   10   *************************************************************************************************/
   11 function(/* comment on the function name */) /*
   12  comment on parameters which are not here
   13  another comment 
   14  comment on the body of function  
   15 */
   16      {
   17      int c, ident;
   18 
   19      c = ident;
   20      /* value of c becomes ident */
   21      c = ident /*  ident is a parameter of function  */;
   22      proc_call(c /*  comment on the parameter  */);
   23      /* comment before printf
   24         which has got more than one line
   25        
   26         which has got more than one line 
   27         another comment before */
   28      printf(
   29        /*printf
   30          
   31          comm1*/ "ident\n" /* comm2 */);
   32      ident =
   33           /* here */ c /*
   34                       comment for ident c 
   35                       prepost 
   36                      */;
   37      }
   38 
   39 function2(a, b) /*  now we have got parameters, it's better  */
   40 int a, b;
   41      {
   42      }
   43 /*
   44  this function doesn't do a lot of work 
   45 ************************************************************************************************
   46                                                                                                 
   47                                   Comment explaining that program is finished                   
   48                                                                                                 
   49 ************************************************************************************************
   50 */