Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › c › haiku › DirEnt Public Struct DirEnt Doc Source Public Struct std.c.haiku.DirEnt
pub const DirEnt = extern struct Fields dev : dev_t device
pdev : dev_t parent device (only for queries)
ino : ino_t inode number
pino : ino_t parent inode (only for queries)
reclen : u16 length of this record, not the name
name : [0 ]u8 name of the entry (null byte terminated)
Functions File c/haiku.zig: 228
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244 pub const DirEnt = extern struct {
/// device
dev : dev_t ,
/// parent device (only for queries)
pdev : dev_t ,
/// inode number
ino : ino_t ,
/// parent inode (only for queries)
pino : ino_t ,
/// length of this record, not the name
reclen : u16 ,
/// name of the entry (null byte terminated)
name : [0 ]u8 ,
pub fn getName (dirent : *const DirEnt ) [*:0 ]const u8 {
return @ptrCast (&dirent .name );
}
}