blob: 52849eaec017ebb64a8780e33baafd81f0dd2d6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// utils.h --- various utilities -*- C -*-
//
// Copyright (c) 2026 Martin Michalec <martin@michalec.dev>
//
// 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 <stdio.h>
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
|