Sha256: 1415a0aeaa04ba26ff01a3cea2e9f351616c3256197e592e7c12e66169769a63
Contents?: true
Size: 666 Bytes
Versions: 10
Compression:
Stored size: 666 Bytes
Contents
#include <stdio.h> #include "cHDL.h" #if defined(_WIN32) || defined(_WIN64) __declspec(dllexport) #endif void echo(void* code) { static void* inP = NULL; static void* outP = NULL; unsigned long long data; /* Is the input port obtained? */ if (inP == NULL) { /* No, get it. */ inP = c_get_port("inP"); } /* Is the input port obtained? */ if (outP == NULL) { /* No, get it. */ outP = c_get_port("outP"); } /* Get data from the input port. */ data = c_read_port(inP); /* Display it. */ printf("Echoing: %llu\n", data); /* Echoing the data. */ c_write_port(outP,data); }
Version data entries
10 entries across 10 versions & 1 rubygems