Skip to content

Instantly share code, notes, and snippets.

View ludomikula's full-sized avatar

Ludovit Mikula ludomikula

  • Slovakia
  • 09:04 (UTC +02:00)
View GitHub Profile
#include <stdio.h>
#include <string.h>
#include "librestic_amd64.h"
int main(int argc, const char **argv)
{
if (argc < 2 || argv == NULL)
{
fprintf(stderr, "No subcommand supplied!\n");
return false;
diff --git a/cmd/restic/main.go b/cmd/restic/main.go
index e61547c5..f9e8cfaa 100644
--- a/cmd/restic/main.go
+++ b/cmd/restic/main.go
@@ -1,5 +1,7 @@
package main
+import "C"
+
import (