Skip to content

Instantly share code, notes, and snippets.

View Makefile
.PHONY: clean uninstall
prefix ?= /usr
exec_prefix ?= $(prefix)
bindir ?= $(exec_prefix)/bin
ETHERWAKE_src = ether-wake.c
ETHERWAKE_bin = ether-wake
ETHERWAKE_tgt = $(DESTDIR)$(bindir)/etherwake
@erichschroeter
erichschroeter / HelloLibrary.cs
Last active Aug 21, 2021
A helloworld example of marshalling an array to C# created in C.
View HelloLibrary.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace HelloApp
{
class HelloLibrary
{