Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
massoudasadi authored Sep 15, 2023
1 parent 0c1ca86 commit bd358ce
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,15 @@

# LibcSharp
`libc` Bindings for C#


# Examples
```C#
using LibcSharp;

int pid = Libc.getpid();
Console.WriteLine($"Current process ID: {pid}");

int result = Libc.kill(pid, (int)Signal.KILL); // or you can use Constants.SIGKILL
Console.WriteLine($"Kill result: {result}");
```

0 comments on commit bd358ce

Please sign in to comment.