entry_ref, BEntry, Haiku c++ api
#include <Entry.h> #include <iostream> int main() { entry_ref e_ref; BEntry{"audio.wav"}.GetRef(&e_ref); std::cout << e_ref.name << "::" << e_ref.device << "::" << e_ref.directory << std::endl; }
Build & Run:
~> g++ xx.cpp -std=c++23 -lbe -o xx ~> ./xx audio.wav::3::1048576
Haiku API Docs https://api.haiku-os.org
Haiku Home - Haiku OS
Back Index - Dig Haiku OS c++
c++ std::exception:
std::cout.write(err.data(), err.size());
std::cout << std::endl;
caught:
=================================== # The c++ programming language. # # # # Join c++ Discord: yZcauUAUyC # # Deck # ===================================