/* 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 <string.h>

#include "SN.h"

JNIEXPORT void JNICALL Java_SN_m(JNIEnv *cntx, jobject me, jbyteArray ba)
{
   signed char *buf = buf = (*cntx)->GetByteArrayElements(cntx, ba, NULL);
   strcpy((char *)buf, "ABC");
   (*cntx)->ReleaseByteArrayElements(cntx, ba, buf, 0);
}
