34typedef enum : uint32_t {
65 for (; path[i] !=
'\0'; ++i) {
101 if ((path ==
nullptr) || (out ==
nullptr) || (cap == 0U)) {
105 const size_t n =
strlen(base);
106 if ((n == 0U) || (n >= cap)) {
static bool mkbookimg_dest_name(const char *path, char *out, size_t cap)
Derive the on-card destination name for a source book path.
mkbookimg_name_limit_t
Bound on a derived on-card file name.
@ k_mkbookimg_name_cap
Destination-name buffer bytes incl.
static const char * mkbookimg_basename(const char *path)
Return the basename of path: the run after its last '/'.
size_t strlen(const char *s)
Calculate string length.
void * memcpy(void *dst, const void *src, size_t n)
Copy memory area between non-overlapping regions.