mirror of
https://github.com/javalsai/lidm.git
synced 2026-02-27 12:00:44 +01:00
* chore(organization): allow nested header and c files * feat: add shell login "middleware" & etc: * lidm now calls `bash` (or other shells, depends on PACKAGE cfg) in login mode as a session wrapper to source most env (can be disabled) * this fixes a lot of env problems with all `/etc/profile` and more Extra: * implemented a musl compatible version of `execvpe` and now lidm should search for PATH everywhere it needs to * `search_path` now also checks if the found binary is properly executable * lidm now uses `confstr` for a decent PATH default if none is found * logs are unbuffered for cases where debug logs appear empty (exit without handlers moment) * chore: one-time evaluate certain makefile vars --------- Co-authored-by: grialion <48643945+grialion@users.noreply.github.com>
16 lines
396 B
C
16 lines
396 B
C
#ifndef UTIL_UTF8_H
|
|
#define UTIL_UTF8_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
|
|
bool utf8_iscont(char byte);
|
|
size_t utf8len(const char* str);
|
|
size_t utf8len_until(const char* str, const char* until);
|
|
size_t utf8trunc(char* str, size_t n);
|
|
const char* utf8back(const char* str);
|
|
const char* utf8seek(const char* str);
|
|
const char* utf8seekn(const char* str, size_t n);
|
|
|
|
#endif /* UTIL_UTF8_H */
|