/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>
#include <string.h>

int main(int argc, char *argv[])
{
   int i,ix;
   char buf[100],*p;
   p = argv[1];
   ix = 0;
   for(i=0;i<strlen(p);i++)
   {
      if((p[i] != '/') && (p[i] != '.'))
      {
         buf[ix] = p[i];
         ix++;
      }
   }
   buf[ix] = '\0';
   printf("%s\n",buf);
   return 0;
}
