Cover V09, I04
Article
Listing 1
Listing 2
Sidebar 1

apr2000.tar


Listing 1 RCS test "C" program

# Listing 1:  (added for publication purposes, not part of 
               original source)

head     1.3;
access   ;
symbols  ;
locks    ; strict;
comment  @ * @;


1.3
date     99.12.06.09.40.15;  author ed;  state development;
branches ;
next     1.2;

1.2
date     99.12.06.09.37.04;  author ed;  state development;
branches ;
next     1.1;

1.1
date     99.12.06.09.34.28;  author ed;  state development;
branches ;
next     ;


desc
@c
RDS test program
@


1.3
log
@
text
@/*
* Listing 1: RCS test 'C' program: 
 #              version 1, func1() and func2()
 *              version 2, remove func2()
 *              version 3, add func3() and func4()
 */
#include <stdio.h>

void func1(char *str);
void func3(char *str);
void func4(char *str);

main()
{
/* A comment with an @@ sign */
   func1('calling func1');
   func3('calling func3');
   func4('calling func4');
}

void func1(char *str)
{
   printf('%s\n', str);
}

void func3(char *str)
{
   printf('%s\n', str);
}

void func4(char *str)
{
   printf('%s\n', str);
}
@


1.2
log
@version 2
@
text
@d4 1
d10 2
a11 1
void func2(char *str);
d16 2
d25 9
@


1.1
log
@Initial version
@
text
@d3 1
a13 1
func1('calling func2');
a20 4
void func2(char *str)
{
   printf('%s\n', str);
}
@