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

#include <ots$routines.h>

void ots$fill(void *addr, size_t len, unsigned char b);

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