My Kernel v0.1.0
libpath_segment Struct Reference

A single path component. More...

#include <path.h>

Data Fields

const char * start
 Start of the segment.
 
const char * end
 End of the segment.
 
const path_tpath
 The original path the segment is a part of.
 
const char * next
 Start of the next segment. More...
 
const char * prev
 Start of the previous segment. More...
 

Detailed Description

A path is split into multiple components (segments). For example, the absolute path '/usr/bin/env' is split into 3 separate segments: 'usr', 'bin' and 'env'

This structure is used to walk along a path (forward or backward)

Field Documentation

◆ next

const char* libpath_segment::next

If this segment is the last one of the path, this is set to NULL.

◆ prev

const char* libpath_segment::prev

If this segment is the first one of the path, this is set to NULL.


The documentation for this struct was generated from the following file: