summaryrefslogtreecommitdiff
path: root/src/user/include/knob/block.h
blob: 43137e167f764c189ed6d0e3d8e35de833dbb7d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef KNOB_BLOCK_H
#define KNOB_BLOCK_H

#include <stdbool.h>
#include <stdint.h>

void blockcpy(void *to, const void *from, uint32_t size);
bool blockequ(const void *a, const void *b, uint32_t size) __attribute__ ((__pure__));

//returns length without null-terminator
uint32_t strcpy(char *to, const char *from);

#endif