home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / comm / bbs / eazybbs / source / unspace.c < prev   
Encoding:
C/C++ Source or Header  |  1995-04-12  |  468 b   |  35 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <time.h>
  5. #include <proto/dos.h>
  6. #include <proto/exec.h>
  7.  
  8.  
  9.  
  10. #define VERSION "1.2"
  11. static char *version = "\0$VER: unspace " VERSION " " __AMIGADATE__ "";
  12.  
  13.  
  14.  
  15. int main(int argc, char *argv[])
  16. {
  17.     int i = 1;
  18.  
  19.     while (i < argc) {
  20.         char *s = argv[i];
  21.         while (*s) {
  22.             if (*s == ' ')
  23.                 putchar('_');
  24.             else
  25.                 putchar(*s);
  26.             ++s;
  27.         }
  28.         if (++i < argc)
  29.             putchar('_');
  30.     }
  31.     putchar('\n');
  32.  
  33.     exit(0);
  34. }
  35.