/* 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>
#ifdef WIN32
#include <io.h>
#endif
#include <sys/stat.h>

int main(int argc, char *argv[])
{
   printf("%d\n",chmod(argv[1], S_IREAD | S_IWRITE));
   return 0;
}
