// utils.h --- various utilities -*- C -*- // // Copyright (c) 2026 Martin Michalec // // SPDX-License-Identifier: MIT // // This file is part of COSMOS Codebase. // // Commentary: // // Code: #ifndef INCLUDED_COSMOS_UTILS_H #define INCLUDED_COSMOS_UTILS_H #include "ms.h" #include "gpa.h" #include struct ms load_file (const char *filename); void *nmmap (usz size, int n); void hexdump (FILE *out, const void *buf, usz sz); struct mb dot_svg (struct gpa gpa, struct mv dot, struct mv css); int mkdir_p (struct mv filename); #endif // INCLUDED_COSMOS_UTILS_H // utils.h ends here