LOG 6: LAST LOG BEFORE SHIP, LAST LOG FOR STARDANCE SADLY. UPTIME, IP AND SHELL FETCH
FEATURES
UPTIME FETCH
Reads /proc/uptime and parses it. Because the output is in second it gets parsed to seconds
IP FETCH
Uses iffaddrs and looks in the linked list of the function for the first non loopback ip address (IPv4)
SHELL FETCH
I usesd getenv(“SHELL”) to get the path of the shell, which i afterwards parsed using strrchr to find the exact name of the shell.
MISC
Added a license (MIT and a notice to Fastfetch as some ASCII’s are from the Fastfetch repo), added a README and a workflow.yml (for automated builds).
NOTE
Sadly the last devlog isn’t that long (maybe thats a good thing tho idk).
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.