/* netzero.c - ambient empire style
      this is a clean up of missnglnk's netzero.c but
      im not so confident that the original even worked properly
      due to a single `\` in the strings, and improper array sizes.
*/
#define _V v[2][i]
main(int c,char**v){
   int printf(),isdigit(),strlen(),l=c==3?strlen(v[2]):0,i=-1;
   static char pwd[16],*s=pwd,*map[2]={
      "$%^&*()_+[]{}|;':\",./<>?abcdefghijklmn","HIJKLMNOPQRSTUVWXYZ0123"};
   printf("Netzero Password Generator\nVersion 0.9\nambient@empire\n\n");
   if(!l||l>14)return(printf("%s login password\n(pwd. length <= 14)\n",*v));
   for(;++i<l;)*s++=map[isdigit(_V)][i-_V+(isdigit(_V)?'9':'z'-(_V<='n'))];
   printf("Username:\t:%s@netzero.net\nPassword:\t0%s1\n\n",v[1],pwd);
}


