blob: e191c390c03982fe9c17d7d267613e11263a639b [file] [log] [blame]
rsc056fe1b2003-11-23 18:19:58 +00001#include <u.h>
2#include <libc.h>
3#include <venti.h>
4
5char*
6vtstrdup(char *s)
7{
8 int n;
9 char *ss;
10
11 if(s == nil)
12 return nil;
13 n = strlen(s) + 1;
14 ss = vtmalloc(n);
15 memmove(ss, s, n);
16 return ss;
17}
18