/* 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>

void arne$move5(int longword_int_source_length, unsigned char source_array [], unsigned char fill_value, int longword_int_dest_length, unsigned char destination_array []);
void arne$fill(void *addr, size_t len, unsigned char b);

int main(int argc, char *argv[])
{
   unsigned char buf[10];
   int i;
   memset(buf, 0x01, sizeof(buf));
   for(i = 0; i < sizeof(buf); i++) printf("%02X", buf[i]);
   printf("\n");
   arne$move5(0, NULL, 0x02, sizeof(buf), buf);
   for(i = 0; i < sizeof(buf); i++) printf("%02X", buf[i]);
   printf("\n");
   arne$fill(buf, sizeof(buf), 0x03);
   for(i = 0; i < sizeof(buf); i++) printf("%02X", buf[i]);
   printf("\n");
   return 0;
}
