https://github.com/ringabout/systemcall
Syscall helper function for Nim.
https://github.com/ringabout/systemcall
Last synced: 10 months ago
JSON representation
Syscall helper function for Nim.
- Host: GitHub
- URL: https://github.com/ringabout/systemcall
- Owner: ringabout
- Created: 2020-07-05T09:55:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-05T10:21:39.000Z (almost 6 years ago)
- Last Synced: 2024-10-14T15:03:37.263Z (over 1 year ago)
- Language: Nim
- Homepage:
- Size: 4.88 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# syscall
Syscall helper function
```nim
import syscall
let message = "Hello, world!\n"
discard syscall(NR_write, 1, cast[clong](message.cstring), message.len)
```