repo.or.cz
/
netwalk.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Added icons provided by nemysis.
[netwalk.git]
/
util.h
blob
644375a928b130eb28762b51e4b943f2f31c49cf
1
#ifndef UTIL_H
2
#define UTIL_H
3
4
#include <stdlib.h>
5
#include <string.h>
6
7
static
inline
char
*
clonestr
(
char
*
s
)
8
{
9
char
*
res
=
malloc
(
sizeof
(
char
) *
strlen
(
s
) +
1
);
10
strcpy
(
res
,
s
);
11
return
res
;
12
}
13
14
#endif
//UTIL_H