mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-09 19:40:48 -05:00
Compare commits
4 commits
6c5fdef6b1
...
31aff769cb
Author | SHA1 | Date | |
---|---|---|---|
31aff769cb | |||
|
fa22e861d5 | ||
|
7bfd7adce8 | ||
|
58dff3f504 |
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@
|
||||||
// our well-known "import" for Zig
|
// our well-known "import" for Zig
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
|
||||||
// and here the new the import for C
|
// and here the new import for C
|
||||||
const c = @cImport({
|
const c = @cImport({
|
||||||
@cInclude("unistd.h");
|
@cInclude("unistd.h");
|
||||||
});
|
});
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
//
|
//
|
||||||
// Zig provides all the necessary functions to change the bits inside
|
// Zig provides all the necessary functions to change the bits inside
|
||||||
// a variable. It is distinguished whether the bit change leads to an
|
// a variable. It is distinguished whether the bit change leads to an
|
||||||
// overflow or not.The details are in the Zig documentation in section
|
// overflow or not. The details are in the Zig documentation in section
|
||||||
// 10.1 "Table of Operators".
|
// 10.1 "Table of Operators".
|
||||||
//
|
//
|
||||||
// Here are some examples of how the bits of variables can be changed:
|
// Here are some examples of how the bits of variables can be changed:
|
||||||
|
|
Loading…
Reference in a new issue