/* 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 test(char *p, size_t len)
{
   printf("%d\n", sizeof(p));
   printf("%d\n", len);
   printf("%u\n", len);
   printf("%p\n", p);
   printf("%p\n", p + len);
}

int main()
{
   char buf[1];
   char *p = buf;
   int len = -1;
   test(p, len);
   memset(p, 0, len);
   return 0;
}
