Makefile: build 2 more examples
[rofl0r-rocksock.git] / rocksock_dynamic.c
blobda4d221f89737966bcb1f6abf9384df7bf53c434
1 #include <string.h>
2 #include <stdlib.h>
3 #include "rocksock.h"
6 rocksock* rocksock_new(void) {
7 rocksock* result = calloc(1, sizeof(rocksock));
8 return result;
11 void rocksock_free(rocksock* s) {
12 if(s) free(s);