// https://c-for-dummies.com/blog/?p=4946 #include #include #include #include void scramble(char *p,int len) { char *key; int x,r; /* allocate the temporary string and fill with null characters */ key = calloc( len+1, sizeof(char) ); if( key==NULL ) { fprintf(stderr,"Memory allocation error\n"); exit(1); } /* process the string */ x = 0; while(x