A C library to Open a path or URL with the system-defined program.
git clone https://github.com/thechampagne/libopen.git
cd libopen
cargo build
#include <stdio.h>
#include <open.h>
int main()
{
if (open_that("http://rust-lang.org") != 0)
{
printf("An error occurred when opening http://rust-lang.org\n");
return -1;
}
printf("Opened successfully.");
return 0;
}
This repo is released under the MIT.