sudo tee somefile > /dev/null
And you will be able to paste from your clipboard or write anything you want. Without cat or piping. <file ssh 'cat >file'
And you could just use scp, but I've found clients without scp and servers with the SFTP subsystem disabled. const win32 = @cImport({
@cInclude("windows.h");
@cInclude("winuser.h");
});
You will write: const win32 = @import("win32");
Where the module "win32" is declared in build.zig.
> opaque {} declares a new type with an unknown (but non-zero) size and alignment. It can contain declarations the same as structs, unions, and enums
So it can contain methods, just like structs. The only thing it cannot contain is fields (which the example above doesn't contain). An opaque type can only be used as a pointer, it's like a `typedef void* ...` in C but with the possibility to add declarations within a namespace
Edit: the documentation doesn't contain any example of an opaque type which happens to have declarations inside. But here is one: https://codeberg.org/andrewrk/daw/src/commit/38d3f0513bf9bfc...