=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/ident.1,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/rcs/ident.1 2005/10/19 16:15:36 1.2 --- src/usr.bin/rcs/ident.1 2005/11/21 08:34:26 1.3 *************** *** 1,4 **** ! .\" $OpenBSD: ident.1,v 1.2 2005/10/19 16:15:36 xsa Exp $ .\" .\" Copyright (c) 2005 Xavier Santolaria .\" All rights reserved. --- 1,4 ---- ! .\" $OpenBSD: ident.1,v 1.3 2005/11/21 08:34:26 xsa Exp $ .\" .\" Copyright (c) 2005 Xavier Santolaria .\" All rights reserved. *************** *** 43,48 **** --- 43,73 ---- .It Fl V Display version information and exit. .El + .Sh EXAMPLES + Given the following source code in file + .Pa foo.c : + .Bd -literal -offset indent + #include + + static char const rcsid[] = + "$\&Id: foo.c,v 1.2 2005/11/18 09:34:51 xsa Exp $"; + + int + main(void) { + printf("%s\en", rcsid); + return (0); + } + .Ed + .Pp + Compile it and run + .Nm : + .Bd -literal -offset indent + $ ident foo.c foo.o + foo.c: + $\&Id: foo.c,v 1.2 2005/11/18 09:34:51 xsa Exp $ + foo.o: + $\&Id: foo.c,v 1.2 2005/11/18 09:34:51 xsa Exp $ + .Ed .Sh SEE ALSO .Xr ci 1 , .Xr co 1 ,