// libgen.h — POSIX path-component helpers.
//
// dirname() returns the parent-dir portion of `path`; basename()
// returns the file-name portion.  Both write to a per-function
// static scratch buffer; the result is valid until the next call
// to the same function.  Separator is auto-detected at runtime —
// '/' for ProDOS paths, ':' for HFS paths.  Pure-name strings are
// treated as basename-equivalent.
//
// Definitions live in libc.c.
#ifndef _LIBGEN_H
#define _LIBGEN_H

#ifdef __cplusplus
extern "C" {
#endif

char *dirname (char *path);
char *basename(char *path);

#ifdef __cplusplus
}
#endif

#endif
