Skip to content

Commit bd358ce

Browse files
authored
Update README.md
1 parent 0c1ca86 commit bd358ce

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,15 @@
22

33
# LibcSharp
44
`libc` Bindings for C#
5+
6+
7+
# Examples
8+
```C#
9+
using LibcSharp;
10+
11+
int pid = Libc.getpid();
12+
Console.WriteLine($"Current process ID: {pid}");
13+
14+
int result = Libc.kill(pid, (int)Signal.KILL); // or you can use Constants.SIGKILL
15+
Console.WriteLine($"Kill result: {result}");
16+
```

0 commit comments

Comments
 (0)