blob: def2aa87ce82a379c8dad2509365f20f47025788 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include <stdlib.h>
#include <stdint.h>
#include <memory.h>
#include "bin.h"
ws_s_bin *ws_bin_s_alloc(uint16_t bytes) {
ws_s_bin *temp = malloc(sizeof(ws_s_bin) + sizeof(uint8_t) * bytes);
temp->bytes = bytes;
return temp;
}
|