-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutil.h
More file actions
27 lines (23 loc) · 803 Bytes
/
util.h
File metadata and controls
27 lines (23 loc) · 803 Bytes
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
/*
* util.h - Utility functions.
*
* Author: Debajyoti Nandi
* Created: 2016-07-08
* Modified: 2016-07-13
* License: MIT License (see LICENSE.txt)
*
*/
#pragma once
#include <stdlib.h>
#include <stdint.h>
/* Print various array types */
void print_array(size_t len, const int a[len]);
void print_array_int64(size_t len, const int64_t a[len]);
void print_array_uint64(size_t len, const uint64_t a[len]);
void println_array(size_t len, const int a[len]);
void println_array_int64(size_t len, const int64_t a[len]);
void println_array_uint64(size_t len, const uint64_t a[len]);
/* Initialize various array types */
void init_array(size_t len, int a[len], int x);
void init_array_int64(size_t len, int64_t a[len], int64_t x);
void init_array_uint64(size_t len, uint64_t a[len], uint64_t x);