Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

trimslash.c File Reference

Test harness; not linked into release. More...

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Variables

int dry_run = 0
int read_only = 1
int list_only = 0


Detailed Description

Test harness; not linked into release.

Definition in file trimslash.c.


Function Documentation

int main int    argc,
char **    argv
 

Definition at line 31 of file trimslash.c.

References trim_trailing_slashes().

00032 {
00033         int i;
00034         
00035         if (argc <= 1) {
00036                 fprintf(stderr, "trimslash: needs at least one argument\n");
00037                 return 1;
00038         }
00039 
00040         for (i = 1; i < argc; i++) {
00041                 trim_trailing_slashes(argv[i]); /* modify in place */
00042                 printf("%s\n", argv[i]);
00043         }
00044         return 0;
00045 }


Variable Documentation

int dry_run = 0
 

Definition at line 22 of file trimslash.c.

int read_only = 1
 

Definition at line 23 of file trimslash.c.

int list_only = 0
 

Definition at line 24 of file trimslash.c.


Generated on Tue Apr 16 12:37:39 2002 for rsync by doxygen1.2.15