repo.or.cz
/
rofl0r-rocksock.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
README.md: remove reference to obsolete NO_STRDUP option
[rofl0r-rocksock.git]
/
rocksock_dynamic.c
blob
da4d221f89737966bcb1f6abf9384df7bf53c434
1
#include <string.h>
2
#include <stdlib.h>
3
#include
"rocksock.h"
4
5
6
rocksock
*
rocksock_new
(
void
) {
7
rocksock
*
result
=
calloc
(
1
,
sizeof
(
rocksock
));
8
return
result
;
9
}
10
11
void
rocksock_free
(
rocksock
*
s
) {
12
if
(
s
)
free
(
s
);
13
}
14